miniworlds


Nameminiworlds JSON
Version 3.0.2.10 PyPI version JSON
download
home_pagehttps://github.com/asbl/miniworlds
SummaryCreate 2D worlds and Games
upload_time2025-01-04 20:43:06
maintainerNone
docs_urlNone
authorAndreas Siebel
requires_pythonNone
licenseOSI Approved :: MIT License
keywords games education mini-worlds pygame
VCS
bugtrack_url
requirements pygame-ce easygui numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.

```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/dc/e6/cf4492dadc63fa71eae3dd2cd86df6783f16880be76d3b771966afcce21a/miniworlds-3.0.2.10.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 keyboard.\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.0.2.10",
    "project_urls": {
        "Download": "https://github.com/asbl/miniworlds",
        "Homepage": "https://github.com/asbl/miniworlds"
    },
    "split_keywords": [
        "games",
        " education",
        " mini-worlds",
        " pygame"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2212efd5cc25b3458f4d883f88f799a63b60aedcbab5202c2cb46f754658671a",
                "md5": "43b90e3b49e25621662c81768c7259c3",
                "sha256": "2e50bbd91c777241cf540c27621d6c9ac74ece3c7a113101ff7d3811e81abb97"
            },
            "downloads": -1,
            "filename": "miniworlds-3.0.2.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "43b90e3b49e25621662c81768c7259c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 162619,
            "upload_time": "2025-01-04T20:43:04",
            "upload_time_iso_8601": "2025-01-04T20:43:04.986858Z",
            "url": "https://files.pythonhosted.org/packages/22/12/efd5cc25b3458f4d883f88f799a63b60aedcbab5202c2cb46f754658671a/miniworlds-3.0.2.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dce6cf4492dadc63fa71eae3dd2cd86df6783f16880be76d3b771966afcce21a",
                "md5": "1c33c82f7490fe1baba4bc545bdf7287",
                "sha256": "cab341fbe6bd50ba481255f008578b7e1121dc5f1a4a78e09d1e6f6257b7f13c"
            },
            "downloads": -1,
            "filename": "miniworlds-3.0.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1c33c82f7490fe1baba4bc545bdf7287",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 127487,
            "upload_time": "2025-01-04T20:43:06",
            "upload_time_iso_8601": "2025-01-04T20:43:06.225818Z",
            "url": "https://files.pythonhosted.org/packages/dc/e6/cf4492dadc63fa71eae3dd2cd86df6783f16880be76d3b771966afcce21a/miniworlds-3.0.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-04 20:43:06",
    "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": [
                [
                    ">=",
                    "2.5.2"
                ]
            ]
        },
        {
            "name": "easygui",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        }
    ],
    "lcname": "miniworlds"
}
        
Elapsed time: 0.77935s