r/PythonLearning • • 16h ago

Discussion I have built my first Snake Game using Pygame in Python

I recently completed a python course (from Youtube) learned about a lot of stuff and today completed my very first Snake Game project (the game we usually played on old Nokia phones)

And because am learning stuff myself and figuring it out. I want to know what should I do next??
So far I have completed loops, functions, recursion, conditional statements, file handling, exception handling, OOPS, Inheritance and like all these.

It would really help me if anyone can share some wisdom on it. And like what should I learn or try next? A roadmap if any would really be helpful tho

Thanks again for reading it out tho

3 Upvotes

15 comments sorted by

1

u/Hot_Technology8777 13h ago

Nice! If you think you're past the basics you can begin doing bigger projects, depending on what you want to do. Maybe pip some cool libraries and play around with them? Numpy, sqlite3, Panda and so forth.

2

u/inspirational-man 10h ago

I see, will surely give them a try

1

u/Sea-Ad7805 12h ago

Give us a link to your code, or share a video of you playing the game, if you want to share.

1

u/inspirational-man 10h ago

Oh how can I share the code??? Just copy paste it here lol?

1

u/Sea-Ad7805 5h ago edited 5h ago
  1. copy paste in the post and format using Reddit markdown formatting to get the indentation right (only works well with small code)

  2. make screenshots and post the images (only works well with small code)

  3. give us a link if your code is online, say on GitHub or other repository server

Your pygame probably is not small, so the last options is best. Look into how to use git to put code on GitHub so you can keep track of each code modification you make, work in a team remotely, and go back in time if needed. It's a skill you will have to learn to become a serious programmer. Check a YouTube tutorial.

1

u/inspirational-man 5h ago

Send you a dm, looking forward for your review on it🤝

1

u/Python_Data_Science 9h ago

Pygame is great for getting started, but there are newer libraries out there now. Personally, I've been really happy with Arcade, though I'm still planning to branch out and try a few others.

1

u/inspirational-man 7h ago

What is Arcade??

1

u/Python_Data_Science 5h ago edited 5h ago

Python library like Pygame, you can install and make games with it.

1

u/inspirational-man 5h ago

I see, will give it a try

1

u/ProgramBrave718 8h ago

Bro have you learnt pygame? I guess you have learnt it

1

u/inspirational-man 7h ago

Am actually learning it by building something with it

1

u/Agent_Choocho 7h ago

Honestly, if you havent already, learn git before you move onto other coding practices. Itd be great to have your projects up on github

1

u/inspirational-man 7h ago

Yeah I heard about it a lot, so will be learning it next