Ensure a USB keyboard is plugged into the USB Host port wired up previously. Reset the board by cycling power or pressing the Reset button, if you happen to plug in a keyboard after power up.
Be sure you connect the DVI breakout to an HDMI monitor and the monitor is on. You might need a long cable if your monitor is not near the Metro RP2350 (like a television). The cables are standard and may be obtained from any trusted retail outlet. Also reset the Metro if you plug in HDMI after powering the Metro.
Once connections are all set, power the Metro RP2350 either via USB C (5 volts) or the barrel connection (5.5 to 17 volts DC, center positive).
The default controls for the game are as follows:
- any key: Press any key to start the game when the title screen is visible.
- W: Change the snakes direction to up.
- A: Change the snakes direction to left.
- S: Change the snakes direction to down.
- D: Change the snakes direction to right.
- T: Pause the game.
- P: After game over, press P to play again.
- Q: After game over, press Q to quit.
The controls for movement and pause can be reconfigured by simply changing the values in the KEY_UP
, KEY_LEFT
, KEY_DOWN
, and KEY_RIGHT
variables near the top of the code.py file.
The goal is to move the snake around the screen eating as many apples as you can. Eating a green apple will speed up the snakes movement making it quicker to get to the next apple, but at the cost of being harder to control once it starts moving faster. Eating a red apple slows the movement speed down.
Points are awarded to the player for each apple that is eaten, bonus points are given based on the length of the snake and the speed it's currently moving, the green apples also have a built-in extra bonus points compared to the red.
Page last edited March 14, 2025
Text editor powered by tinymce.