{"id":22372543,"url":"https://github.com/mandaw2014/mandawengine","last_synced_at":"2026-04-01T22:05:48.476Z","repository":{"id":46564992,"uuid":"396394865","full_name":"mandaw2014/MandawEngine","owner":"mandaw2014","description":"A Game Engine Made in Python with the Pygame Module","archived":false,"fork":false,"pushed_at":"2022-06-03T20:46:02.000Z","size":721,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-30T22:31:46.831Z","etag":null,"topics":["2d","gameengine","mandaw","mandawengine","pygame","python"],"latest_commit_sha":null,"homepage":"https://mandaw2014.github.io/MandawEngine/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandaw2014.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-15T15:22:08.000Z","updated_at":"2025-01-09T00:12:54.000Z","dependencies_parsed_at":"2022-09-03T08:01:53.032Z","dependency_job_id":null,"html_url":"https://github.com/mandaw2014/MandawEngine","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mandaw2014/MandawEngine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandaw2014%2FMandawEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandaw2014%2FMandawEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandaw2014%2FMandawEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandaw2014%2FMandawEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandaw2014","download_url":"https://codeload.github.com/mandaw2014/MandawEngine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandaw2014%2FMandawEngine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","gameengine","mandaw","mandawengine","pygame","python"],"created_at":"2024-12-04T20:43:22.065Z","updated_at":"2026-03-27T04:19:53.181Z","avatar_url":"https://github.com/mandaw2014.png","language":"Python","readme":"# MandawEngine\nA Game Engine Made in Python with the Pygame Module\n\nDiscord: https://discord.gg/MPPqj9PNt3\n\n# Installation\nTo Get The Latest Version of MandawEngine:\nOn Windows:\n```\npip install https://github.com/mandaw2014/mandawengine/archive/master.zip\n```\nOn Mac and Linux\n```\npip3 install https://github.com/mandaw2014/mandawengine/archive/master.zip\n```\n\n# Getting Started\nimport Mandaw\n```py\nfrom mandaw import *\n```\n\nMake a window\n```py\nfrom mandaw import *\n\nmandaw = Mandaw() \n\nmandaw.loop()\n```\nMake a simple square\n```py\nsquare = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"red\", width = 20, height = 20)\n```\nCenter it with\n```py\nsquare.center()\n```\nDraw it\n```py\n@mandaw.draw\ndef draw():\n    square.draw()\n```\n# Full Code\n```py\nfrom mandaw import *\n\nmandaw = Mandaw(\"First Mandaw Window!\")\n\nsquare = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"red\", width = 20, height = 20)\nsquare.center()\n\n@mandaw.draw\ndef draw():\n    square.draw()\n\nmandaw.loop()\n```\n# Collisions Between GameObjects\nWhat we have so far\n```py\nfrom mandaw import *\n\nmandaw = Mandaw(\"Collisions!\", bg_color = \"cyan\")\n\nsquare = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"orange\", width = 20, height = 30)\nsquare.center()\n\nground = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"gray\", width = 5000, height = 100)\nground.center()\nground.y = 500\n\n@mandaw.draw\ndef draw():\n    square.draw()\n    ground.draw()   \n\nmandaw.loop()\n```\nHere We Can Use The `collide()` Function along with the built in `update()` function. For example, We're Going To Make Gravity Here\n```py\nfrom mandaw import *\n\nmandaw = Mandaw(\"Collisions!\", bg_color = \"cyan\")\n\nsquare = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"orange\", width = 20, height = 30)\nsquare.center()\n\nground = GameObject(window = mandaw, shape = \"rect\", x = 0, y = 0, color = \"gray\", width = 5000, height = 100)\nground.center()\nground.y = 500\n\n@mandaw.draw\ndef draw():\n    square.draw()\n    ground.draw()   \n\n@mandaw.update\ndef update(dt):\n    # Collision code here\n    if not square.collide(ground):\n        # Square's y position += 1 x deltaTime\n        square.y += 1 * dt\n\nmandaw.loop()\n```\n\n# Platformer Controller Prefab\nWhat we have so far\n```py\nfrom mandaw import *\n\nmandaw = Mandaw(\"Platformer Example\", bg_color = \"cyan\")\n\nmandaw.loop()\n```\nImport the PlatformerController2D with\n```py\nfrom mandaw.prefabs.platformer_controller import PlatformerController2D\n```\nThen call it\n```py\nplayer = PlatformerController2D(mandaw, x = 0, y = 0, centered = True)\n```\nThen in the ```def update(dt)``` function, call\n```py\n@mandaw.update\ndef update(dt)\n    player.movement(dt)\n``` \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandaw2014%2Fmandawengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandaw2014%2Fmandawengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandaw2014%2Fmandawengine/lists"}