Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Cool game made with pygame
Post: RE: Cool game made with pygame

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, becau...
Milosz Code Review 3 3,045 Nov-22-2021, 07:33 PM
    Thread: Cool game made with pygame
Post: Cool game made with pygame

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 betw...
Milosz Code Review 3 3,045 Nov-18-2021, 10:27 AM
    Thread: Import a module for use in type hint?
Post: Import a module for use in type hint?

Hello! I have my own class called ShareData which consist all game settings, images, sounds etc. I pass one instance of ShareData as an __init__ argument(argument name is 'data') to the all other obje...
Milosz General Coding Help 0 1,482 Nov-08-2021, 06:49 PM
    Thread: Best way to pass data to the few game states with the same superclass?
Post: RE: Best way to pass data to the few game states w...

Great idea, thank you. I'm gonna do like you said, but I always think about all possible solutions and compare them. What about using there an inheritance? class Setting: def __init__(self): ...
Milosz Game Development 5 3,021 Oct-20-2021, 10:28 AM
    Thread: Best way to pass data to the few game states with the same superclass?
Post: RE: Best way to pass data to the few game states w...

Thanks for the answer **smile** (Oct-16-2021, 03:59 PM)Windspar Wrote: Avoid global variables like the plagueIs it called global variables if I store some stuff in a module and just import it in a...
Milosz Game Development 5 3,021 Oct-16-2021, 07:17 PM
    Thread: Best way to pass data to the few game states with the same superclass?
Post: Best way to pass data to the few game states with ...

Hello, I wonder what is the best way to pass data to the few game states with the same superclass? I'm gonna use state machine with control class. States class is a superclass for Game and MainMenu(an...
Milosz Game Development 5 3,021 Oct-16-2021, 11:06 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020