a pixel snake game
- use mouse to choose the level you want. When hoover on your desire level, your mouse should turn into hand.
- click on your chosen level.
- enter your game.
- use up/down/left/right on key board to control the snake(green)
- if snake eats apple(read), snake's length increase one grid
- the game will stop if the snake crashes on walls.
- the game records your best scores.
- chatgpt-o4 mini high: generate codes and fix errors
- sono: generate background music
Things ai already leant, they can generate code very well. For example, I only use one sentence to generate a very basic snake game.
After adding sounds, there appeared a control issue: the user cannot properly control the snake. I have to ask gpt to check the code again.
AI needs human to think ahead and guide it. I want to upgrade the image at first. but ai cannot figure the facing of a snake. So I only add music feature for the game, for the sake of time.
made ai song and add it as bg music. There was one I like much better, but it is not for free to download. (If you are interested, here is the link: https://suno.com/song/99f29b41-3157-46e6-9de7-11168b5beaab?sh=9OTKRszWaxGQKgSB) So I choose the free one. If you are interested in the lyrics, I attached below.
LYRICS
[Verse] Slither left slide to the right Twist and turn in the neon light I’m chasing my tail in a digital maze Hungry for pixels caught in the craze
[Prechorus] Don’t hit the wall don’t bite your tail One wrong move it’s game over fail
[Chorus] Snake in the grass oh I’m moving fast Every bite makes me longer can I last Snake in the grass don’t let me crash One wrong step and I’m just a flash
[Verse 2] Grid lines pulse like a heartbeat strong The rhythm of danger keeps me moving along An apple ahead glowing like a prize But every victory comes with a size
[Bridge] I’m a pixelated serpent in a world of squares Dodging my mistakes looping everywhere It’s a simple game but it’s got me hooked One more try one more look
[Chorus] Snake in the grass oh I’m moving fast Every bite makes me longer can I last Snake in the grass don’t let me crash One wrong step and I’m just a flash August 5, 2025 at 1:16 PM