{"id":25347355,"url":"https://github.com/yuehaowang/pylash_engine","last_synced_at":"2025-10-29T16:32:00.174Z","repository":{"id":62581285,"uuid":"41961981","full_name":"yuehaowang/pylash_engine","owner":"yuehaowang","description":"A lightweight and relaxed game engine for Python.","archived":false,"fork":false,"pushed_at":"2021-03-12T08:25:30.000Z","size":18028,"stargazers_count":38,"open_issues_count":3,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-13T09:57:36.645Z","etag":null,"topics":["game-engine","pyside2","python3"],"latest_commit_sha":null,"homepage":"","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/yuehaowang.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":"2015-09-05T13:31:40.000Z","updated_at":"2024-12-25T08:16:23.000Z","dependencies_parsed_at":"2022-11-03T20:15:13.569Z","dependency_job_id":null,"html_url":"https://github.com/yuehaowang/pylash_engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Fpylash_engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Fpylash_engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Fpylash_engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Fpylash_engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuehaowang","download_url":"https://codeload.github.com/yuehaowang/pylash_engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238854809,"owners_count":19541899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["game-engine","pyside2","python3"],"created_at":"2025-02-14T14:26:40.586Z","updated_at":"2025-10-29T16:31:59.057Z","avatar_url":"https://github.com/yuehaowang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pylash Engine\n---------------\n\n**Latest Version: 2.0.0**\n\n*Pylash* is a modern and cross-platform 2D game engine written in *Python*. With modern and practical interfaces provided by *pylash*, you can create games in an easy and relaxed way.\n\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n\n\n## Why *Pylash*\n\n1. Cross-platform. Leveraging compatibility of the underlying engine *PySide2*, *pylash* supports many mainstream platforms including Ubuntu, macOS and Windows.\n2. Easy-to-use APIs. *Pylash* adopts ActionScript-like interface designs to raise the efficiency of game developing.\n3. Lightweight. *Pylash* does not come with piles of third-party tools and frameworks.\n4. Comprehensiveness. *Pylash* is a universal framework and provides various object-oriented interfaces including display of images, text and vector graphics, collision detection, tween animation, multimedia, etc.\n\n\n## Get Started with *Pylash*\n\n### Installation\n\n```bash\n$ pip install pylash-engine\n```\n\n### Hello World Program\n\nCreate a *Python* file and open it with your favorite text editor. Type in the code below:\n\n```python\nfrom pylash.core import init, addChild\nfrom pylash.display import TextField\n\ndef main():\n    txt = TextField()\n    txt.text = \"Hello World\"\n    txt.size = 40\n    txt.x = txt.y = 100\n    addChild(txt)\n\ninit(30, \"Hello World\", 400, 300, main)\n```\n\nRun the *Python* file. If a window with a \"Hello World\" text shows up, you have installed *pylash* successfully.\n\n\n## Tutorials\n\n- [Overview of Pylash](https://github.com/yuehaowang/pylash_engine/wiki/Overview-of-Pylash)\n- [Let's Hello World](https://github.com/yuehaowang/pylash_engine/wiki/Let's-Hello-World)\n- [Load and Display An Image](https://github.com/yuehaowang/pylash_engine/wiki/Load-and-Display-An-Image)\n- [Sprite and Mouse Events](https://github.com/yuehaowang/pylash_engine/wiki/Sprite-and-Mouse-Events)\n- [Create Vector Graphics](https://github.com/yuehaowang/pylash_engine/wiki/Create-Vector-Graphics)\n\n\n## Contributing\n\nThis project is hosted [on Github](https://github.com/yuehaowang/pylash_engine). Issue reports and pull requests are welcome. In addition, you can drop me an email if you have any question or suggestion.\n\n- My email: wangyuehao1999@gmail.com\n\n\n## Example Screenshots\n\n- **Find Character**\n\n![Find Character](https://github.com/yuehaowang/pylash_engine/raw/master/doc/images/find_character.png)\n\n- **Get Fruits**\n\n![Get Fruits](https://github.com/yuehaowang/pylash_engine/raw/master/doc/images/get_fruits.png)\n\n- **Tower Defense**\n\n![Tower Defense](https://github.com/yuehaowang/pylash_engine/raw/master/doc/images/tower_defense.png)\n\n\n## Changelog for 2.0.0\n\n1. Port base engine from *PyQt4* to *PySide2*.\n2. Removed modules: `text`, `system`, `net`.\n3. Renamed modules: `utils` =\u003e `core`.\n4. Added `loaders` module, providing various loaders for different resource types.\n5. Moved `TextField` class and related classes to `display` module.\n6. Enhanced `LineEdit` class: added focus-in event and focus-out event.\n7. Substitute *Phonon* with *QtMultimedia* as multimedia engine.\n8. Added `Video` class in `media` module for displaying videos.\n9. Improved event system. Listener will not receive an event dispatcher as the parameter anymore.\n10. Added more demo.\n11. Added docstrings for `core` module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuehaowang%2Fpylash_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuehaowang%2Fpylash_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuehaowang%2Fpylash_engine/lists"}