| A | |
| add(sprite_set,animation_name,start_frame,frame_count,duration,loop_count), sprite | |
| C | |
| circle: | |
| circle: | |
| D | |
| displayobject: | |
| G | |
| geminiObject: | |
| geminiObject: | |
| gotoScene, director | |
| L | |
| layer: | |
| layer: | |
| line: | |
| loadScene, director | |
| N | |
| newCircle, display | |
| newLine, display | |
| newRect, display | |
| newSprite, sprite | |
| newSpriteSet, sprite | |
| newSpriteSheetFromData, sprite | |
| R | |
| rectangle: | |
| rectangle: | |
| S | |
| sprite: | |
| sprite: | |
| sprite: | |
| T | |
| text_field: |
Defines an animation for a given sprite set.
function sprite.add( sprite_set, animation_name, start_frame, frame_duration, loop_count )
Set the width of the border
method circle:setBorderWidth( width )
Set the fill color for the circle
method circle:setFillColor( r, g, b, a )
Add an event listener for the named type of event.
method geminiObject:addEventListener( name, listener )
Remove an event listener for the named type of event.
method geminiObject:removeEventListener( name, listener )
Transitions to a scene.
function director.gotoScene( sceneName, params )
Add a display object to this layer.
method layer:insert( display_object )
Loads a scene but doesn’t display it yet.
function director.loadScene( file, param1, param2 )
Create a circle.
function display.newCircle( x1, y1, x2, y2 )
Create a polyline.
function display.newLine( x1, y1, x2, y2 )
Creates a rectangle.
function display.newRect( x, y, width, height )
Creates a new sprite.
function sprite.newSprite( sprite_set )
Creates a new sprite set.
function sprite.newSpriteSet( sprite_sheet, start_frame, frame_count )
Loads a sprite sheet from a data file and creates a texture from the associated image file.
function sprite.newSpriteSheetFromData( file )
Set the width of the border
method rectangle:setBorderWidth( width )
Set the fill color for the rectangle
method rectangle:setFillColor( r, g, b, a )
Pause the sprite animation.
method sprite:pause()
Start the sprite animation.
method sprite:play()
Load an animation for the sprite
method sprite:prepare( animation_name )
Set the width of the border
method text_field:setBorderWidth( width )