Latest Version: 1.4.1
Pylash
is a game engine for python
which imitates some classes and functions in flash
. We develop pylash
with Python3
and the GUI engine of pylash
is PyQt4
. Many classes which are almost from flash
such as Sprite
, BitmapData
, Bitmap
, TextField
, Loader
and Graphics
will be found in pylash
.
We use MIT License, which is a free and friendly license. Besides, you must follow the license of PyQt4
as well, because pylash
is based on it.
With Git:
Input this command in Git Bash
to clone pylash
:
git clone git@github.com:yuehaowang/pylash_engine.git
Without Git:
The url to download the engine is:
https://github.com/yuehaowang/pylash_engine/archive/master.zip
For pylash
is based on Python3
and PyQt4
, you need to install them first.
Python3 will be found here:
PyQt4 will be found here:
https://riverbankcomputing.com/software/pyqt/intro
If you find the library has some bugs or that you have any questions or advice, please let us know:
My email: wangyuehao1999@gmail.com
My twitter: https://twitter.com/yuehaowang
Bugs can be submited into Github Issues too.
Documentation comes soon...
Release Date: 3/13/2016
globalToLocal
method in DisplayObject
class to get a point's position which is relative to the global coordinate.localToGlobal
method in DisplayObject
class to get a point's position which is relative to the local coordinate of display object.Matrix
class in geom
module to create a matrix used for transforming coordinate.Transform
class in geom
module and transform
property in DisplayObject
. With them, you can transform display object arbitrarily.Release Date: 2/7/2016
width
&height
property of DisplayObject
to limit the size of display object.Sound
class in media
module to play music.LoadManage.load
, you can load music.LoadManage
used to use threading.thread
to create a thread, now it use QThread
.Release Date: 1/10/2016
LineEdit
class in ui
module to create single-line input box.RankingSystem
in system
module, which connect server and send requests to add/get ranking.RankingServer
in net
module, which is a socket
server used with RankingSystem
.onComplete
&onStart
&onUpdate
property in TweenLite
.Release Date: 12/26/2015
ButtonSample
in ui
module, which is used for creating a very simple button. Generally speaking, it's used for testing.StageWebView
in media
module to show some webpages in the window.Release Date: 11/21/2015
draw
method in BitmapData
to draw a display object in BitmapData
object.QImage
object into drawing QPixmap
object to make image rendering fast.setPixel
, getPixel
, setPixels
, getPixels
method in BitmapData
for pixel processing.lock
, unlock
method in BitmapData
for faster pixel processing when you process pixels many times at a time.Rectangle
class and Point
class.Graphics
when using moveTo
method or lineTo
method.Release Date: 11/8/2015
LinearGradientColor
/RadialGradientColor
/ConicalGradientColor
object to lineStyle
method of Graphics
class as the second parameter.TweenLite
static class and TweenLiteChild
class to create some easing animations.Easing
static class to provide many easing methods for TweenLite
class.Button.removeState
.Release Date: 11/1/2015
Shape
class to create vector graphics. It's lighter than Sprite
when you just want to use vector graphics.Release Date: 10/7/2015
Button
class to create a simple button.LinearGradientColor
, RadialGradientColor
and ConicalGradientColor
class to use gradient color.delay
property in LoadManage
class to set the delay time between loading a resource and loading the next resource in order to show loading page.useAntialiasing
property in stage
in order to open/close antialiasing.onComplete
callback function will be called in the thread used for loading resources in LoadManage
.PyQt
will throw errors if text
property of TextField
is set to a value whose type is not str
.mouseShelter
property in DisplayObjectContainer
to set whether stop propagating mouse events to DisplayObjectContainer
objects that are sheltered by other objects.selfY
in mouse event is wrong.x
and y
property in parameter 'bitmapData' given into the constructor of Animation
class will be the origin position of the animation.AnimationSet
class to control a set of animations.MOUSE_OVER
and MOUSE_OUT
event.Release Date: 9/20/2015
Graphics
.join style
, cap style
and miter limit
in Graphics
.Release Date: 9/12/2015
Create pylash
with display
, text
, system
, utils
and events
modules which include Sprite
, Bitmap
, Graphics
, Loader
, Stage
and more powerful classes.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。