Let's add the ability to control our snake. To handle key presses, override the Game parent class's onKeyPress(Key) method. Depending on which key is
pressed, set the appropriate direction of snake movement. Bear in mind that a snake cannot instantly turn 180 degrees.
Snake (Part 11/20)
- 3
Locked
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
david fernandez hernandez
12 May 2022, 13:00
Can someone help me with the last task please?
+1
Roman
16 May 2022, 06:16
Please post your question with the attached solution in the section Help.
0