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

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.

Ship #1

So I added an index.html site to make it easier for the user to download the executable file. Pretty much all functions and the coding I did were fairly displayed on my previous devlogs. I formatted the text a bit better in the game over and start screen. But except from that everything else remains the same. Go to this site: https://prodevmod.github.io/MySnakeGame/ and click on the download button to download the game. This game is made with Pygame and all the graphics are made by me. I drew them in pixilart. It has three themes. It does keep track of the score. You can gain points by eating apples and lose points by eating poisoned ones. You lose the game if you collide with a part of your tail, with a wall, or with the borders of the screen. It's just like the classic retro game but with a twist. Please rate me well. I put a lot of effort and creativity into this.

  • 5 devlogs
  • 10h
  • 3.18x multiplier
  • 32 Stardust
Try project → See source code →
Open comments for this post

2h 28m 40s logged

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.

0
0
2
Open comments for this post

2h 29m 51s logged

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.

0
0
1
Open comments for this post

1h 37m 42s logged

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.

0
0
1
Open comments for this post

1h 55m 53s logged

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.

0
0
3
Open comments for this post

1h 39m 17s logged

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.

0
0
1

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…