• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

yuehaowang/pylash_engine: A lightweight and relaxed game engine for Python.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

yuehaowang/pylash_engine

开源软件地址:

https://github.com/yuehaowang/pylash_engine

开源编程语言:

Python 100.0%

开源软件介绍:

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

MIT License

Why Pylash

  1. Cross-platform. Leveraging compatibility of the underlying engine PySide2, pylash supports many mainstream platforms including Ubuntu, macOS and Windows.
  2. Easy-to-use APIs. Pylash adopts ActionScript-like interface designs to raise the efficiency of game developing.
  3. Lightweight. Pylash does not come with piles of third-party tools and frameworks.
  4. 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. If a window with a "Hello World" text shows up, you have installed pylash successfully.

Tutorials

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.

Example Screenshots

  • Find Character

Find Character

  • Get Fruits

Get Fruits

  • Tower Defense

Tower Defense

Changelog for 2.0.0

  1. Port base engine from PyQt4 to PySide2.
  2. Removed modules: text, system, net.
  3. Renamed modules: utils => core.
  4. Added loaders module, providing various loaders for different resource types.
  5. Moved TextField class and related classes to display module.
  6. Enhanced LineEdit class: added focus-in event and focus-out event.
  7. Substitute Phonon with QtMultimedia as multimedia engine.
  8. Added Video class in media module for displaying videos.
  9. Improved event system. Listener will not receive an event dispatcher as the parameter anymore.
  10. Added more demo.
  11. Added docstrings for core module.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap