This is comment for paste
Controllable snake (update 4.1) toggle riding in the HUD update
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To not ride the snake, but still control it, remove this bit of code:
- // Riding behavior: place cursor BEHIND the snake head
- if (typeof cursor !== "undefined") {
- const behind = body.at(-2) || body.at(-1);
- if (behind) {
- cursor.x = behind.x;
- cursor.y = behind.y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment