Pygame engines

I am currently writing RTS for pygame and have written several modules on top of pygame for common things, such as efficient collision detection, state system and more specific sprites. Now, when you write games other than Rect and Surface, I hardly write any calls to Pygame itself.

When googling around this, I did not find anything that seemed to actually get the upper hand with pygame for most of the game's design. So, I was wondering if anyone else had used any pygame-based engine and found it worked well. I also planned to release the game and the engine as an open source, so I want to know how many others did, and therefore I have to make or integrate into my engine.

+3
source share
1 answer

Well Pygame itself is essentially a Python wrapper for SDL calls. I think that basically you just wrap the shell.

You can always create your own adapter API, but what exactly do you dislike about the Pygame API, that you feel that you need to separate it from your code?

I think that your general methods, such as selective conflict detection, can be divided into your own engine module, essentially separating it from the rest of your game code, but essentially you just execute Pygame with this approach, rather than wrapping it .

EDIT:
, , . , , . The Independent Gaming Source forums, . , - , .

, , "" Pygame, SDL, , - (, ) . , , , , -, Pygame.

RTS Pygame, , , RTS , , , , . , , , , RTS Pygame, .

+6

Source: https://habr.com/ru/post/1720927/


All Articles