A Pygame framework that facilitates the creation and development of projects https://shampoo.ooo
Go to file
frank 72866bd11c str conversion for Sprite Frameset 2022-03-15 21:51:09 -04:00
pgfw str conversion for Sprite Frameset 2022-03-15 21:51:09 -04:00
.gitignore old print formatted 2012-12-23 19:20:36 +09:00
LICENSE.txt added license 2021-05-29 20:50:14 -04:00
MANIFEST.in added distutils setup script 2012-08-25 00:05:25 -04:00
README added license 2021-05-29 20:50:14 -04:00
__init__.py video recorder request; points; apply motion overflow 2015-03-26 13:48:36 -04:00
sample.py sound effect 2018-05-21 19:46:28 -04:00
setup.py added distutils setup script 2012-08-25 00:05:25 -04:00

README

----------------
Pygame Framework
----------------

Classes to facilitate creation of Pygame projects


Example
-------

Save and run to create a project that redraws a square at a random location
every second.  This script is also written in the `sample.py` file.

    from time import sleep
    from random import randint

    from pgfw.Game import Game

    class SampleGame(Game):

        square_width = 30

        # instructions in the update method automatically run once every frame
        def update(self):
            sleep(1)
            screen = self.get_screen()
            bounds = screen.get_size()
            screen.fill((0, 0, 0))
            screen.fill((255, 255, 255),
                        (randint(0, bounds[0]), randint(0, bounds[1]),
                         self.square_width, self.square_width))


    if __name__ == '__main__':
        SampleGame().run()


License
-------

MIT License

see LICENSE.txt for details


Business
--------

420@shampoo.ooo