Tagged Questions
1
vote
2answers
126 views
Searching a map fewer times
... or better yet, removing the need to search the map altogether.
I'm either looking for suggestions on how to optimize my code, or a change in design.
In my component-based entity system, the ...
5
votes
2answers
249 views
How to write reuseable components for pygame
Is there a recommended way to write reuseable components for pygame? Simple example would be a FPS counter. Should I write a class which has an init, update and draw method and call them from inside a ...