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.
```python
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](examples_twoactors.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/asbl/miniworlds",
"name": "miniworlds",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "games, education, mini-worlds, pygame",
"author": "Andreas Siebel",
"author_email": "andreas.siebel@it-teaching.de",
"download_url": "https://files.pythonhosted.org/packages/6a/3f/0aa387cd0d3b7f1e62b058813280fa704ab10c4bf055d9c1a402f533440c/miniworlds-3.1.0.1.tar.gz",
"platform": null,
"description": "miniworlds\n---------\n\nminiworlds allows you to create 2D mini worlds and games. \n\nIt is a 2D engine inspired by greenfoot and gamegrid based on pygame.\n\n### Examples\n\nTwo actors that can be controlled with the keyworld.\n\n```python\nfrom miniworlds import World, Actor\n\nworld = World()\nworld.add_background(\"images/grass.jpg\")\nplayer = Actor((90,90))\nplayer.add_costume(\"images/player.png\")\nplayer.costume.orientation = -90 \n@player.register\ndef on_key_down_w(self):\n player.y = player.y - 1\n \nplayer2 = Actor((180,180))\nplayer2.add_costume(\"images/player.png\")\nplayer2.costume.orientation = -90 \n@player2.register\ndef on_key_pressed_s(self):\n player2.y = player2.y - 1\n \nworld.run()\n```\n\n[Two Actors](examples_twoactors.png)\n",
"bugtrack_url": null,
"license": "OSI Approved :: MIT License",
"summary": "Create 2D worlds and Games",
"version": "3.1.0.1",
"project_urls": {
"Download": "https://github.com/asbl/miniworlds",
"Homepage": "https://github.com/asbl/miniworlds"
},
"split_keywords": [
"games",
" education",
" mini-worlds",
" pygame"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "47e6ad571d3dc993a525248f8251d8ce9e9cb76245a18eb1af9b1f09dea2832f",
"md5": "aa1106bd9a7174e28e5b9c0b1a071200",
"sha256": "4c7b916ab9b48cea02d2487e9ba3d3930ac44ec4d165b8f85bc8874fb5929c94"
},
"downloads": -1,
"filename": "miniworlds-3.1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "aa1106bd9a7174e28e5b9c0b1a071200",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 181022,
"upload_time": "2025-07-12T16:17:31",
"upload_time_iso_8601": "2025-07-12T16:17:31.088299Z",
"url": "https://files.pythonhosted.org/packages/47/e6/ad571d3dc993a525248f8251d8ce9e9cb76245a18eb1af9b1f09dea2832f/miniworlds-3.1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6a3f0aa387cd0d3b7f1e62b058813280fa704ab10c4bf055d9c1a402f533440c",
"md5": "8d5a962fe286688af806ad8d2b019bf0",
"sha256": "7a6c42b26a3cba5fcf3af6d791f713e26c43d0417ae3ac455d785524dc4bbfd9"
},
"downloads": -1,
"filename": "miniworlds-3.1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "8d5a962fe286688af806ad8d2b019bf0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 141769,
"upload_time": "2025-07-12T16:17:32",
"upload_time_iso_8601": "2025-07-12T16:17:32.353906Z",
"url": "https://files.pythonhosted.org/packages/6a/3f/0aa387cd0d3b7f1e62b058813280fa704ab10c4bf055d9c1a402f533440c/miniworlds-3.1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 16:17:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "asbl",
"github_project": "miniworlds",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "pygame-ce",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "setuptools",
"specs": []
},
{
"name": "dotenv",
"specs": [
[
"==",
"0.9.9"
]
]
},
{
"name": "invoke",
"specs": [
[
"==",
"2.2.0"
]
]
},
{
"name": "python-dotenv",
"specs": [
[
"==",
"1.0.1"
]
]
},
{
"name": "sphinx-intl",
"specs": []
},
{
"name": "sphinxcontrib.video",
"specs": []
},
{
"name": "sphinx_autodoc_typehints",
"specs": []
},
{
"name": "myst_parser",
"specs": []
},
{
"name": "sphinxcontrib.mermaid",
"specs": []
},
{
"name": "autoclasstoc",
"specs": []
},
{
"name": "sphinx_toolbox",
"specs": []
},
{
"name": "sphinx_book_theme",
"specs": []
}
],
"lcname": "miniworlds"
}