Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 add(sprite_set,animation_name,start_frame,frame_count,duration,loop_count), sprite
C
 circle
 circle:setBorderWidth, circle
 circle:setFillColor, circle
 createScene
D
 director
 display
 Display Types
 displayobject
 displayobject:delete, displayobject
E
 enterScene
 event
F
 Functions
G
 geminiObject
 geminiObject:addEventListener(name,listener), geminiObject
 geminiObject:removeEventListener(name,listener), geminiObject
 gotoScene, director
I
 Introduction
L
 layer
 layer:insert(display_object), layer
 layer:setBlendFunc(src_blend,dest_blend), layer
 line
 line:setColor, line
 loadScene, director
N
 name, event.event
 Native UI Types
 newCircle, display
 newLine, display
 newRect, display
 newSprite, sprite
 newSpriteSet, sprite
 newSpriteSheetFromData, sprite
P
 Properties
R
 rectangle
 rectangle:setBorderWidth, rectangle
 rectangle:setFillColor, rectangle
S
 Scene Template
 scene_events
 sprite
 sprite library
 sprite:pause, sprite
 sprite:play, sprite
 sprite:prepare(animation_name), sprite
T
 text, text_field
 text_field
 text_field:setBorderWidth, text_field
X
 x, displayobject
Y
 y, displayobject
function sprite.add(sprite_set,
animation_name,
start_frame,
frame_duration,
loop_count)
Defines an animation for a given sprite set.
A circle object.
method circle:setBorderWidth(width)
Set the width of the border
method circle:setFillColor(r,
g,
b,
a)
Set the fill color for the circle
Event generated when a scene is first loaded.
An object that can be displayed on the screen
Remove this object from the display and allow it to be garbage collected
Event generated when a scene has just been transitioned.
An object passed to an event handler that contains information about the event that has occurred.
The base object type for all objects in Gemini.
method geminiObject:addEventListener(name,
listener)
Add an event listener for the named type of event.
method geminiObject:removeEventListener(name,
listener)
Remove an event listener for the named type of event.
function director.gotoScene(sceneName,
params)
Transitions to a scene.
The Gemini SDK is a framework for building sophisticated 2D iOS games in Lua.
A group of display objects possessing the same depth and blending characteristics.
method layer:insert(display_object)
Add a display object to this layer.
Set the blend function for this layer.
A polyline object
Set the color of the line
function director.loadScene(file,
param1,
param2)
Loads a scene but doesn’t display it yet.
The name of the event.
function display.newCircle(x1,
y1,
x2,
y2)
Create a circle.
function display.newLine(x1,
y1,
x2,
y2)
Create a polyline.
function display.newRect(x,
y,
width,
height)
Creates a rectangle.
function sprite.newSprite(sprite_set)
Creates a new sprite.
function sprite.newSpriteSet(sprite_sheet,
start_frame,
frame_count)
Creates a new sprite set.
function sprite.newSpriteSheetFromData(file)
Loads a sprite sheet from a data file and creates a texture from the associated image file.
A rectangle object.
method rectangle:setBorderWidth(width)
Set the width of the border
method rectangle:setFillColor(r,
g,
b,
a)
Set the fill color for the rectangle
A sprite object.
The sprite library is used to create sprites.
method sprite:pause()
Pause the sprite animation.
method sprite:play()
Start the sprite animation.
method sprite:prepare(animation_name)
Load an animation for the sprite
The text stored in the input
A text input object.
method text_field:setBorderWidth(width)
Set the width of the border
The x coordinate
The y coordinate
Close