Snake (Part 11/20)

  • 3
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
12 May 2022, 13:00
Can someone help me with the last task please?
Level 41
16 May 2022, 06:16
Please post your question with the attached solution in the section Help.