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.
- 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.
$ pip install pylash-engine
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. If a window with a "Hello World" text shows up, you have installed pylash successfully.
- Overview of Pylash
- Let's Hello World
- Load and Display An Image
- Sprite and Mouse Events
- Create Vector Graphics
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
- Find Character
- Get Fruits
- Tower Defense
- Port base engine from PyQt4 to PySide2.
- Removed modules:
text
,system
,net
. - Renamed modules:
utils
=>core
. - Added
loaders
module, providing various loaders for different resource types. - Moved
TextField
class and related classes todisplay
module. - Enhanced
LineEdit
class: added focus-in event and focus-out event. - Substitute Phonon with QtMultimedia as multimedia engine.
- Added
Video
class inmedia
module for displaying videos. - Improved event system. Listener will not receive an event dispatcher as the parameter anymore.
- Added more demo.
- Added docstrings for
core
module.