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.1.4.tar.gz (127.7 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.1.4-py3-none-any.whl (163.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: miniworlds-3.0.1.4.tar.gz
  • Upload date:
  • Size: 127.7 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.1.4.tar.gz
Algorithm Hash digest
SHA256 c140a59a952e1e231cbf4fc2bd23d1a13031f0a412f0c9e8d5d98cccef1172ce
MD5 07bffaff1984d81b5b5286e1b5b1a19c
BLAKE2b-256 bd5c3bdac5d4ab8597796778370c4eeef29204530852c8c74a698a6907f18ebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: miniworlds-3.0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 163.0 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2170ef9bf82b4e30846187bdb59cf792b0c87b5b94a82b8d9e41b208dd9a0a2c
MD5 b2e95c9dbddeddcbce8cf53bd5296e98
BLAKE2b-256 4956df43f7e944337be1952a3c8fd722a2f59dbe710809ed87ab7ea308a02805

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