You are browsing as a guest. Sign up (or log in) to start making projects!

Da Snake Game

  • 2 Devlogs
  • 2 Total hours

Teeny tiny, responsive vanilla-JS game where you guide a blue snake across a 30×30 grid, eat red food to grow, and chase a higher score without crashing into walls or yourself. Built with plain HTML/CSS/JavaScript, no frameworks, just a game loop, collision logic,

Ship #1 Pending review

Made this hangryyyy snake game, (It reminds me of myself). Do try not to crash into yourself or the walls. Fixed the movement, collision detection, scoring, and high-score saving to behave without the snake randomly deciding to ruin my entire run. It’s responsive, works with keyboard controls and mobile buttons, and is actually playable, good enough for the first ship. GO HAVE FUN!!!

  • 2 devlogs
  • 2h
Try project → See source code →
Open comments for this post

1h 1m 42s logged

Sup weirdos :p: Added collision detection and food spawning to the snake game, so now the snake actually dies when it hits walls or itself and grows when it eats.Spent an hour wrestling a bug where food kept spawning on top of the snake body,fixed it by looping until the new position didn’t overlap any segment,then cleaned up the score counter so it increments properly. I’m thinking the first ship is readyyyyyy. ( It’s very rough, but okayish)

0
0
25
Open comments for this post

1h 12m 19s logged

HALLO PEOPLE :) I spun up the skeleton for snake game: HTML board, CSS that doesn’t make my phone cry, and a basic “press arrow, snake moves” prototype. my snake was teleporting instead of gliding,until I realized I’d mixed up the timing for updates and rendering. I switched to a fixed-interval tick so the snake actually crawls instead of glitching through walls, and now I have to teach it not to eat itself, adding food, score, and those on,screen buttons so I can play like a civilized human.

0
0
2

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…