https://github.com/matthazinski/peggy-tetris
ENGE 1104 Project
https://github.com/matthazinski/peggy-tetris
Last synced: about 2 months ago
JSON representation
ENGE 1104 Project
- Host: GitHub
- URL: https://github.com/matthazinski/peggy-tetris
- Owner: matthazinski
- Created: 2012-04-02T20:04:17.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-01T23:07:11.000Z (about 13 years ago)
- Last Synced: 2025-02-01T14:37:34.911Z (4 months ago)
- Language: Arduino
- Homepage:
- Size: 273 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is a Arduino sketch that can be used to play Tetris on the Peggy2 board, which was developed as a project for ENGE 1104 at Virginia Tech. The necessary code is currently contained in the peggy_tetris directory. tetris.c and tetris2.c are older libraries that are now contained entirely in the Arduino sketch.
Gameplay requires the board contain four directional buttons
- Left is mapped to moveLeft()
- Right is mapped to moveRight()
- Down is mapped to drop()
- Up is mapped to rotate()Note that buttons need to be depressed until the next clock cycle in order to be recognized. The initial delay between line changes is 1000ms, but this decreases by 5% after each clock cycle.
The game is lost when new pieces cannot be added to the current board. Full lines are automatically deleted, and the tiles are pushed downwards.
External documentation:
- http://www.evilmadscientist.com/article.php/PeggyArdLib