Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(buttonInputPressed == BUTTON_RIGHT)
- {
- if(kurryDirection != BUTTON_LEFT)
- {
- snakeX += 3;
- }
- if(kurryDirection == BUTTON_RIGHT)
- {
- snakeY -= 3;
- }
- kurryDirection = BUTTON_RIGHT
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement