Skip to main content

nygame

nygame is a wrapper around the pygame library. It's goal is to provide and more pythonic and easy to use experience.

Usage

A basic game structure can be started like this:

import nygame
import pygame

class Game(nygame.Game):
    def __init__(self):
        super().__init__(size=(300, 200))
        pass

    def loop(self, events):
        pygame.draw.circle(self.surface, "red", (150, 100), 50)

if __name__ == "__main__":
    Game().run()

After Game.__init__() is called, a new game. A window of 300x200 will be created to host the game. Further options are available in super().__init__()'s doc string.

Game.loop() will be called every frame, with the most recent events in the events argument. The screen will automatically be cleared before every frame and can be drawn to by using self.surface.

Demos

EmojiApp - A demo app that lets you browse through emoji

Development

Deployment

???

Metadata

Release files for nygame 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nygame 1.4.0
File Size Uploaded Provenance Actions
nygame-1.4.0.tar.gz 18.3 kB Without provenance Details for nygame-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nygame 1.4.0
File Interpreter ABI Platform Actions
nygame-1.4.0-py3-none-any.whl Python 3 none any Details for nygame-1.4.0-py3-none-any.whl

Total release size: 38.9 kB

Release files / nygame-1.4.0.tar.gz

Download URL nygame-1.4.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a399a922f4bbb5708680e31303ad091a595aafb9580a4de3e0efba103d45ad3b
BLAKE2b-256 checksum
How to use checksums
5d4a4fbd3889c3d6cc826a7e9a03d58615e4ffb639e926b3e743e08840a93d11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / nygame-1.4.0-py3-none-any.whl

Download URL nygame-1.4.0-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5262888d17cde0c1670dd070346c0bdd240bf9f74122f05c3268fff6c830e5e
BLAKE2b-256 checksum
How to use checksums
2fccc70badcb03a0c809535cc65bda9a95ad1e643cd07422b6ed005bfedac6b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for nygame 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page