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()
Metadata
Release files for miniworlds 4.3.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| miniworlds-4.3.1.16.tar.gz | 187.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| miniworlds-4.3.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 422.2 kB
Release files / miniworlds-4.3.1.16.tar.gz
| Download URL | miniworlds-4.3.1.16.tar.gz |
|---|---|
| Size | 187.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f4d97f1c075a11bdc139a001f4a5641ed9407cf7cd219e0f5d4e33f5af65ad8
|
|
BLAKE2b-256 checksum How to use checksums |
91b9aa34c1e051657212991db35d6411c8f7c3cbfcb3c70a01c379b61065d340
|
| 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.16-py3-none-any.whl
| Download URL | miniworlds-4.3.1.16-py3-none-any.whl |
|---|---|
| Size | 235.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c0c1d3d8de828cd8010976293a6629e715ddcd209f2ed166a96d51042482cdd
|
|
BLAKE2b-256 checksum How to use checksums |
b31a34c830c21bb6d4f3b4a12731d1f7283b45bf8aecd36ece4527ef66e9c4b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|