A lightweight and relaxed game engine for Python.
Project description
Pylash Engine
Latest Version: 2.0.0
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.
License
Why Pylash
- Cross-platform. Leveraging compatibility of the underlying engine PySide2, pylash supports many mainstream platforms including Ubuntu, macOS and Windows.
- Easy-to-use APIs. Pylash adopts ActionScript-like interface designs to raise the efficiency of game developing.
- Lightweight. Pylash does not come with piles of third-party tools and frameworks.
- 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.
Get Started with Pylash
Installation
$ pip install pylash-engine
Hello World Program
Create a Python file and open it with your favorite text editor. Type in the code below:
from pylash.core import init, addChild
from pylash.display import TextField
def main():
txt = TextField()
txt.text = "Hello World"
txt.size = 40
txt.x = txt.y = 100
addChild(txt)
init(30, "Hello World", 400, 300, main)
Run the Python file and you will get a window with a "Hello World" text.
Contributing
This project is hosted on Github. Issue reports and pull requests are welcome. In addition, you can drop me an email if you have any question or suggestion.
- My email: wangyuehao1999@gmail.com
Example Screenshots
- Find Character
- Get Fruits
- Tower Defense
Changelog for 2.0.0
- Port base engine from PyQt4 to PySide2.
- Removed modules:
text,system,net. - Renamed modules:
utils=>core. - Added
loadersmodule, providing various loaders for different resource types. - Moved
TextFieldclass and related classes todisplaymodule. - Enhanced
LineEditclass: added focus-in event and focus-out event. - Substitute Phonon with QtMultimedia as multimedia engine.
- Added
Videoclass inmediamodule for displaying videos. - Improved event system. Listener will not receive an event dispatcher as the parameter anymore.
- Added more demo.
- Added docstring for
coremodule.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylash_engine-2.0.0a1.tar.gz.
File metadata
- Download URL: pylash_engine-2.0.0a1.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d9f1e7e09c8369dd93b3bfdd782abd03ab5e3671c9538076d3150842a048446
|
|
| MD5 |
6180e2c4e57e63aa4457a339b2ae16de
|
|
| BLAKE2b-256 |
b4975e0ff5140ccdb0da7da9619c044e468f26a2b11ea1546ce43e0c19ee92ad
|
File details
Details for the file pylash_engine-2.0.0a1-py3-none-any.whl.
File metadata
- Download URL: pylash_engine-2.0.0a1-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
521ee63da40a927be7902938b94bcb7cf9a192aa37969c53235e9d95f1d3a803
|
|
| MD5 |
66c7a2116416a225e95660d7fe927644
|
|
| BLAKE2b-256 |
682f3a4ef75faf86a539b2afa0fbb0d1c69ae86c8c9dd9ff520587677e3acae0
|