Skip to main content

miniworlds

miniworlds allows you to create 2D mini worlds and games.

It is a 2D engine inspired by greenfoot and gamegrid based on pygame.

Examples

Two actors that can be controlled with the keyworld.

from miniworlds import World, Actor

world = World()
world.add_background("images/grass.jpg")
player = Actor((90,90))
player.add_costume("images/player.png")
player.costume.orientation = -90 
@player.register
def on_key_down_w(self):
    player.y = player.y - 1
   
player2 = Actor((180,180))
player2.add_costume("images/player.png")
player2.costume.orientation = -90 
@player2.register
def on_key_pressed_s(self):
    player2.y = player2.y - 1
    
world.run()

Two Actors

Metadata

Release files for miniworlds 4.4.0.9

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

Source distribution (sdist)

Source distribution for miniworlds 4.4.0.9
File Size Uploaded Provenance Actions
miniworlds-4.4.0.9.tar.gz 210.9 kB Without provenance Details for miniworlds-4.4.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 476.8 kB

Release files / miniworlds-4.4.0.9.tar.gz

Download URL miniworlds-4.4.0.9.tar.gz
Size 210.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a239b2f31359689487acfdda6c821667733350b102bfeb9546dfa7990458adf0
BLAKE2b-256 checksum
How to use checksums
5b845f3d2c1fa7a1829aa98f071cdb82729ad6d66fbb5cbc20cdd036085b83e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / miniworlds-4.4.0.9-py3-none-any.whl

Download URL miniworlds-4.4.0.9-py3-none-any.whl
Size 265.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be31e03085957b93366b5bcc6a0d2ecee1b1bf85db29be72eb53088e5f4432c8
BLAKE2b-256 checksum
How to use checksums
d7e7f0df5e0edb24014844c7765969110f2aa0f244ba415208cfc9f0ad72740a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for miniworlds 4.4.0.9

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.

Release history Release notifications | RSS feed

This release

4.4.0.9 This release

2 release files No provenance

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