Layer : GameObject
Properties
-
defaults : Object
Sets default controls options.
-
frame : Integer
Get frame index.
-
frameHeight : Integer
Set frame height.
-
frameWidth : Integer
Set frame width.
-
height : Integer
Height of this object
-
image : Bitmap
Game object image.
-
name : String
Name of the game object.
-
options : Object
Position of navigation bar.
-
paint : Paint
Object used for final decoration.
-
scale : Float
Scale of the game object.
-
scaledHeight : Integer
Get scaled height of this object.
-
scaledWidth : Integer
Get scaled width of this object.
-
sequence : Array
Sequence of the frames.
-
this
Construct of the object calls following method in order.
-
visible : Boolean
Visibility of game object. Default is set to visibility true.
-
width : Integer
Width of this object
-
x : Integer
X - coordinates of view's position.
-
y : Integer
Y - coordinates of view's position.
Methods
-
_setObject()
Object parameters if object has been changed.
-
afterInitControls
Method is executed after init controls.
-
beforeInitControls
Method is executed before init controls.
-
draw(canvas,paint = null)
Method to defines what is done if onDraw event is called.
-
init() : GameObject
Initialise Game object instance.
-
intersectsBounds(obj) : Boolean
Check intersects by object.
-
intersectsPoint(x, y) : Boolean
Check intersects by Location(x and y coordinate).
-
nextFrame(rewind = true)
Get next Frame.
-
prevFrame(rewind = true)
Get previous frame.
-
process()
Call on process handler if defined.
-
undefined(k,v)
Special property executed when priperty is undefined. It can be that JSON format is in format "key" : "value". Key is an string, so if this is the case methot return "value". Ass well as k is a regular property of the class it returns getter of this property.
Events
-
onProcess(sender) : Function
Event on process handler. It defines what suppose to be done on game process.
|
|
|
 |
Sprite
|
|
|
 |
Layer
|
|
|
 |
TiledLayer
|
|
|
 |
Scene
|
|
|
 |
TextButton
|
|
 |
Game
|
|
 |
Canvas
|
|
 |
Bitmap
|
|
 |
Paint
|
|