Skip to main content

Create 2D worlds and Games

Project description

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

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

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

miniworlds-3.0.2.2.tar.gz (127.5 kB view details)

Uploaded Source

Built Distribution

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

miniworlds-3.0.2.2-py3-none-any.whl (162.5 kB view details)

Uploaded Python 3

File details

Details for the file miniworlds-3.0.2.2.tar.gz.

File metadata

  • Download URL: miniworlds-3.0.2.2.tar.gz
  • Upload date:
  • Size: 127.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.20

File hashes

Hashes for miniworlds-3.0.2.2.tar.gz
Algorithm Hash digest
SHA256 33ae8647f6e81c6620425dcc43a09e2d2fa3e9c0459749338b789f770e385ee5
MD5 8bf8fe07e797e03294bc1c4b2f40eff7
BLAKE2b-256 99dfbad2d11c8b058f25d3136dc7d1d26f41402196493e7b75a22526e0dd5568

See more details on using hashes here.

File details

Details for the file miniworlds-3.0.2.2-py3-none-any.whl.

File metadata

  • Download URL: miniworlds-3.0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 162.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.20

File hashes

Hashes for miniworlds-3.0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f7ae77d53a962a852230b333f5a0ac9b1dd0abac45dd698a6fae0f2a8766af
MD5 11dd99ae5c5227878ef14089594315ca
BLAKE2b-256 8e4fcd69622b078694d0842229fbc967ad83be8353e5d9971e84c989f12f4d7b

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