| Display Types | |
| Circle | A circle object. |
| Rectangle | A rectangle object. |
| Shape | The parent type for various shapes (circle, rectangle, etc.) |
| Functions | |
| Shape: | Set the stroke color for the rectangle |
| Shape: | Set the fill color for the rectangle |
| Sprite | A sprite object. |
| Functions | |
| Sprite: | Load an animation for the sprite |
| Sprite: | Start the sprite animation. |
| Sprite: | Pause the sprite animation. |
| Emmiter | Emmitter objects are particle emitters that can be used for effects like flame, smoke, etc. |
| Functions | |
| Emitter. | Sets the target for the emitter. |
| Node | The basic visual type for Gemini SK. |
| Properties | |
| alpha | The transparency value applied to the Node’s contents. |
| hidden | Boolean flag indicating whether or not the Node and it’s children are rendered. |
| name | The Node’s name. |
| parent | The Node’s parent Node. |
| paused | Boolean value indicating whether or not the actions on the node and its descendantes are processed. |
| scene | The scene that contains the Node. |
| speed | The speed at which actions of the Node and its descendants actions are performed. |
| userInteractionEnabled | Boolean value indicating whether or not the Node receives touch events. |
| x | The x coordinate |
| y | The y coordinate |
| xScale | The scale for the width of the Node and its children. |
| yScale | The scale for the height of the node and its children. |
| zPosition | The height of the Node relative to its parent. |
| zRotation | The roatation of the Node about the z-axis (in radians). |
| Functions | |
| Node: | Set the position of this Node relative to its parent Node. |
| Node: | Remove this object from the display and allow it to be garbage collected |
A circle object.
Inherits from: Shape
A rectangle object.
Inherits from: Shape
The parent type for various shapes (circle, rectangle, etc.). The Shape type cannot be instantiated directly, rather, sub types of Shape are created via factory methods in the shape library.
Inherits from: Node
| Functions | |
| Shape: | Set the stroke color for the rectangle |
| Shape: | Set the fill color for the rectangle |
A sprite object.
Inherits from: Node
| Functions | |
| Sprite: | Load an animation for the sprite |
| Sprite: | Start the sprite animation. |
| Sprite: | Pause the sprite animation. |
Emmitter objects are particle emitters that can be used for effects like flame, smoke, etc.
| Functions | |
| Emitter. | Sets the target for the emitter. |
The basic visual type for Gemini SK. All visual element are based on Node. Nodes can contain child nodes. Channging the properties such as poistion or rotation of a Nodes changes the propertis of its children. Node properties are always relative to its parent.
Note: Boolean properties prepend “is” to the property name for getting the value. For example, “isHidden”.
Inherits from: GeminiObject
| Properties | |
| alpha | The transparency value applied to the Node’s contents. |
| hidden | Boolean flag indicating whether or not the Node and it’s children are rendered. |
| name | The Node’s name. |
| parent | The Node’s parent Node. |
| paused | Boolean value indicating whether or not the actions on the node and its descendantes are processed. |
| scene | The scene that contains the Node. |
| speed | The speed at which actions of the Node and its descendants actions are performed. |
| userInteractionEnabled | Boolean value indicating whether or not the Node receives touch events. |
| x | The x coordinate |
| y | The y coordinate |
| xScale | The scale for the width of the Node and its children. |
| yScale | The scale for the height of the node and its children. |
| zPosition | The height of the Node relative to its parent. |
| zRotation | The roatation of the Node about the z-axis (in radians). |
| Functions | |
| Node: | Set the position of this Node relative to its parent Node. |
| Node: | Remove this object from the display and allow it to be garbage collected |
Load an animation for the sprite
method Sprite:prepare( animation_name )
Start the sprite animation.
method Sprite:play()
Pause the sprite animation.
method Sprite:pause()
Sets the target for the emitter.
method Emitter.setTarget( node )