This shows you the differences between two versions of the page.
pm:prj2023:apredescu:gameofsnake [2023/05/28 20:41] mihai.andrei3105 [Software Design] |
pm:prj2023:apredescu:gameofsnake [2023/05/28 23:59] (current) mihai.andrei3105 [General Description] |
||
---|---|---|---|
Line 7: | Line 7: | ||
My aim is to try and recreate the game so that anyone can share in the fun of this old-school classic. | My aim is to try and recreate the game so that anyone can share in the fun of this old-school classic. | ||
===== General Description ===== | ===== General Description ===== | ||
- | {{:pm:prj2023:apredescu:andrei_mihai_alexandru_1221a-_diagram.png?700|}} | + | {{:pm:prj2023:apredescu:screenshot_2023-05-28_235828.png?700|}} |
My project uses an Arduino UNO R3 board as its base, as well as an 8x8 Module LED Matrix to display the game itself as well as the score, a Module Joystick to control the Snake's movements during the game and a buzzer that makes noises whenever you pick up a fruit or lose. | My project uses an Arduino UNO R3 board as its base, as well as an 8x8 Module LED Matrix to display the game itself as well as the score, a Module Joystick to control the Snake's movements during the game and a buzzer that makes noises whenever you pick up a fruit or lose. | ||
+ | |||
+ | {{:pm:prj2023:apredescu:andrei_mihai-alexandru_1221a-schematic.png?600|}} | ||
===== Hardware Design ===== | ===== Hardware Design ===== | ||
==== List of Parts: ==== | ==== List of Parts: ==== | ||
Line 49: | Line 51: | ||
9. The `snakeMessage` array defines the pattern for the "snake" message displayed on the LED matrix. | 9. The `snakeMessage` array defines the pattern for the "snake" message displayed on the LED matrix. | ||
- | Note: The code assumes that the required `LedControl` library is properly installed and available in the Arduino IDE. | + | Overall, this code implements a basic snake game that runs on an Arduino UNO R3 board and displays the game on a LED matrix. The joystick is used to control the snake's movement, and the game ends when the snake collides with its own body. |
- | + | ||
- | Overall, this code implements a basic snake game that runs on an Arduino Nano board and displays the game on a LED matrix. The joystick is used to control the snake's movement, and the game ends when the snake collides with its own body. | + | |
===== Results ===== | ===== Results ===== | ||