Skip to main content

A pygame engine for common game operations like vector math and maintaining events in the game loop

Project description

Game Utils

0.1.1

game-utils is a pygame engine. The engine includes modules to facilitate boilerplate game operations.

Installation

pip install -i https://test.pypi.org/simple/ game-utils

Example usage

from game_utils import Game

class MyAwesomeGame(Game):
    def _update_screen(self):
        self.screen_settings.screen.fill(
            self.screen_settings.bg_color or "dodgerblue2"
        )


if __name__ == "__main__":
    game = MyAwesomeGame(
        screen_settings=Game.ScreenSettings(
            bg_color="coral2"
        )
    )

    print("Starting game...")
    game.run()
    print("Thanks for playing!")

See Also...

My ongoing game projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

game_utils-0.1.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

game_utils-0.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file game_utils-0.1.1.tar.gz.

File metadata

  • Download URL: game_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for game_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1e5fda21c4ab56e006284b5f6c110ae105733de4bf83bdca3e16c8b59d96f48
MD5 73e9b398b7ca7f40a62792fc0e640671
BLAKE2b-256 0a7a6fe5e1bf30abad46cda949a386396e96e926433b3182e583f756b14c5fbb

See more details on using hashes here.

File details

Details for the file game_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: game_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for game_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3dccb70f1c0c108eb9fe660f6ef511db99413054a98f64dcb0dac409106f7ec5
MD5 586e2047e94130029975b726ff6f6725
BLAKE2b-256 88a6ce3ac4ca4a1d1eae11121d2954c4dcb13e1b75c31e041e5a0af32ca74c17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page