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
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet