Some pygame boilerplate to get started quickly
Find a file
2022-04-02 12:17:31 -05:00
.gitignore init 2022-04-02 12:15:31 -05:00
game.py init 2022-04-02 12:15:31 -05:00
mygame.py init 2022-04-02 12:15:31 -05:00
pygame_starter.py init 2022-04-02 12:15:31 -05:00
README.md add example game 2022-04-02 12:17:31 -05:00
setup.py init 2022-04-02 12:15:31 -05:00

pygame-starter

Installation

pip install git+https://github.com/WaylonWalker/pygame-starter

Example Game

You can make a quick game by inheriting from Game, and calling .run(). This example just fills the screen with an aqua color, but you can put all of your game logic in the game method.

from pygame_starer import Game

class MyGame(Game):
    def game(self):
        self.screen.fill((128, 255, 255))

if __name__ == "__main__":
    game = MyGame()
    game.run()