Snake Game
- 5 Devlogs
- 6 Total hours
Building a fun snake game!
Building a fun snake game!
I added WASD support and updated the UI so players can use W/A/S/D as an alternative to the arrow keys. To make the change clear and intuitive, the in-game control hint and the instructions dialog now mention WASD, and each on-screen arrow button displays the matching WASD letter so both control schemes are visible. This improves usability for desktop players who prefer WASD and reduces confusion about available inputs. I verified the change by starting the game and doing a short playthrough: movement works with arrows and WASD (uppercase or lowercase), swipe and on-screen buttons still work, scoring and level-up behavior remain unchanged, and collisions behave the same. The changes are intentionally minimal and non-disruptive. Next steps I can take: add simple styling for the WASD labels to match the UI, run cross-browser checks, or add a small accessibility note about keyboard controls—which would you prefer?
My Snake Game is officially live! 🎉 I hope you all enjoy playing my version of this classic game. I added my own features, including levels that get harder as you play and obstacles that make each stage more challenging. I also made the obstacle locations random so that every game feels different and keeps you on your toes.this project. I had a lot of fun building it and I learned many new programming skills along the way. Give it a try, see how far you can get, and let me know your highest score. I hope you have as much fun playing it as I had making it!
My newest change was writing the rules for the obstacles and level system in my game. I wanted the game to become more exciting as the player keeps playing instead of staying the same the whole time. Now, every time the snake eats 3 red fruits, the level increases by 1. As the level goes up, the game becomes harder because more obstacles are added that the snake has to dodge. This makes the player pay more attention and react faster as they move through each level. I also made sure that the obstacles appear in random places each time the game is played. This is important because if the obstacles always appeared in the same spots, players would quickly memorize where they were and the game would become too easy and repetitive. By randomizing the obstacle locations, every game feels different, which keeps the game challenging and interesting.
I have now worked on the frontend of my snake game. Initially the snake body was blending in with the background which made it hard to see how long and where the snake is. To fix this I changed the background color to a darker shade of blue that is darker than the green snake body. Another change I made was making the color of obstacle different from the red fruit so that users are not confused.
Being inspired by Google’s Snake game, I decided to create my own version of the game. I have always enjoyed playing Snake because it is fun and easy to understand, so I wanted to make a version with some extra features. My goal is to make the game more interesting by adding levels and obstacles. As the player progresses through the game, it will become more challenging, giving them something new to overcome instead of playing the same level over and over again. I think this will make the game more entertaining and a great way for people to pass the time.
Before adding the main features, I started by creating an instructions button. I thought this was important because it helps new players understand how to play the game before they begin. The instructions explain the controls, the goal of the game, and what players need to avoid. By adding clear instructions at the start, users can quickly learn how to play and enjoy the game without feeling confused.