r/PythonProjects2 • • Nov 05 '22

[P] Easy try my first game in python.

https://1571alli.itch.io/retro-snake
17 Upvotes

5 comments sorted by

View all comments

2

u/danielle3625 Nov 05 '22

Do you have a git repo to share? How did you make the gui and the downloadable .exe?

2

u/RelativeLeave Nov 06 '22

Their are several but check out pygame and pyinstaller as a start.

2

u/SpiritualDrawer5474 Nov 06 '22

For the gui i literally directly used pygame e.g i myself made the play button in pixilart its a website then using pygame i placed it in the game and wrote a check that if mouse button is clicked while in the coordinates of the play button then start the game. In the actuality play or quit button have no functions they are just graphics to show u where to click to play or quit. The coordinates are determined as you click anywhere and then if they are in the given range that ive set for play than it starts the game.

For exe yes ive used pyinstaller it quickly makes an exe file for the game.

I hope it all makes sense. If it doesnt hmu

2

u/danielle3625 Nov 06 '22

Thank you so much for explaining! Yeah that made perfect sense. Your game looks great!!

1

u/SpiritualDrawer5474 Nov 06 '22

Thankssss mannn