Python Forum
Cool game made with pygame - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: Code Review (https://python-forum.io/forum-46.html)
+--- Thread: Cool game made with pygame (/thread-35571.html)



Cool game made with pygame - Milosz - Nov-18-2021

Hello,
I've finished my game which gonna be in my python programmer portfolio. I did my best but it's my first project and I'm not sure if it's well done. For example I'm not sure if I share data between game states and object in the correct way(ShareData object). Could someone review my code and check if I did something wrong what shouldn't be done? https://github.com/Mikaspe/6.Space-War


RE: Cool game made with pygame - menator01 - Nov-19-2021

First I want to say good job.
When trying your game I did so with python versions 3.9.7 and 3.10.
The game starts fine but, when destroying the ships, the explosion sequences leaves the the final frame.
After clearing the screen of ships, it will not move past this screen. (See images below)
Again great job.


RE: Cool game made with pygame - Milosz - Nov-22-2021

I'm very glad that someone answered, thank you Smile I fixed bug with upgrade menu, just forgot to change some constant. Now I wonder why do you have another bug with explosion animations, because I run game on Windows and it's working well. I made some very good optimisation in explosion logic(thanks to you, because I'd never see that if u didn't mention about explosion bug), could you try it again and check if there's still a problem?


RE: Cool game made with pygame - Talbot9 - Feb-22-2022

Hi I'm new to python and I having a go at this same game looks like you have cracked it well done hope I manage to I'm about 2/3 the way through now