smoothretro82
Nov 22nd, 2025
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. To not ride the snake, but still control it, remove this bit of code:
  2.  
  3. // Riding behavior: place cursor BEHIND the snake head
  4. if (typeof cursor !== "undefined") {
  5. const behind = body.at(-2) || body.at(-1);
  6. if (behind) {
  7. cursor.x = behind.x;
  8. cursor.y = behind.y;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment