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.3.1.15

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.3.1.15
File Size Uploaded
miniworlds-4.3.1.15.tar.gz 186.0 kB Details

Built distribution (wheel)

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

Total release size: 420.1 kB

Release files / miniworlds-4.3.1.15.tar.gz

Download URL miniworlds-4.3.1.15.tar.gz
Size 186.0 kB
Tags Source
SHA-256 checksum
How to use checksums
159a4ff106ca07eb982e95f44e90fdd99877eb8c71a7ef134ea6ca74ffbb5bb3
BLAKE2b-256 checksum
How to use checksums
eec2b62365a74d773daf47066a0abec1bfb04446207a4ab11e215ba682c9a3fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

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

Download URL miniworlds-4.3.1.15-py3-none-any.whl
Size 234.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb65892481bf27d870c054746869bffa66e89e93c2657f3035e5686faca33679
BLAKE2b-256 checksum
How to use checksums
603e2fcddf132507d58c7945b5a2901e5ce6d08c5dde7e58002ed012ce54cdb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

4.3.1.15 This release

2 release files

3.0.0.4

1 release file

3.0.0.3

1 release file

3.0.0.2

1 release file

3.0.0.1

1 release file

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