nsccs / pygames

Collection of games created with pygame.
4 stars 4 forks source link

implement basic graphics #7

Closed SayYesToTrees closed 9 months ago

SayYesToTrees commented 9 months ago

Added basic graphics for game. This required some refactoring and optimizing to achieve a decent experience. Mainly went through and removed any excess traversal and unnecessary conditionals that were previously running in the main game loop. The basic flow of the program is: check all cells for update, apply changes, and only draw to and update the display where the change is occurring. Future performance gains I think would have to be made in trying to reduce the amount of checking of dead isolated cells that is going on.