Snake.py
- 5 Devlogs
- 10 Total hours
I am building my very own snake game. It just has a twist: every apple or fruit you eat becomes a wall block.
I am building my very own snake game. It just has a twist: every apple or fruit you eat becomes a wall block.
I just finished the game for now and deployed the first exe file so anyone can download it and play it. It has three themes that were made in the last devlog. A one in a ten chance of the apple being poisonous if the apple is poisonous, you can wait it out until it re-renders and teleports to another place where it most likely will be an apple. I also have added in the start and quit screens:
a welcome prompt
a quick instructions prompt
a game over prompt
a quick instructions prompt
your final score
It’s displayed. To leave the game, you press Escape in the game over screen. I also added a full screen when you open the game that’s black so now you get more of that retro feel.
I added three themes. The classic one the classic Corretto one and the blue one. I added graphics for the snake. I also added a game over screen and the start screen. I meditate to leave the game by pressing Escape. I put a start and restart function.
So I fixed a bit the colors, added a start screen, a game over screen. I ended up using a state machine instead of a Boolean value, which I was planning at the start of the project. For the handling of playing start and game over that is. I added the score counter. And now I’m thinking and going on and adding themes and better graphics.
So I made MY core concept work and started to add graphics.I will most certainly add a snake graphic later on.Now I ll work on the Start and GAME OVER screens.Ill add some sounds and make better graphics later on.I ll keep yall updated.Explanation abt my code you ll find once I upload it on github.
So I just finished the core concept of the original snake game. Right now I have three classes. A Python main class that’s to have a more readable script, a Snake class, and a fruit class there is no checking for the snake to be inside the window. So I haven’t yet made borders that would end the game and nor can it collide with itself. But is this is the core concept of the working game. Now I will go on to add the barriers, the collision to itself, and maybe a score. See you in two hours.