phina.js.d.ts
Preparing search index...
phina
game
GameApp
Interface GameApp
interface
GameApp
{
accelerometer
:
phina
.
input
.
Accelerometer
;
awake
:
boolean
;
currentScene
:
phina
.
display
.
DisplayScene
;
currentTime
:
number
;
deltaTime
:
number
;
domElement
:
HTMLElement
;
elapsedTime
:
number
;
fps
:
number
;
frame
:
number
;
gridX
:
phina
.
util
.
Grid
;
gridY
:
phina
.
util
.
Grid
;
height
:
number
;
interactive
:
phina
.
app
.
Interactive
;
keyboard
:
phina
.
input
.
Keyboard
;
mouse
:
phina
.
input
.
Mouse
;
pointer
:
phina
.
input
.
Touch
;
pointers
:
phina
.
input
.
Touch
[]
;
rootScene
:
phina
.
display
.
DisplayScene
;
startTime
:
number
;
ticker
:
phina
.
util
.
Ticker
;
touch
:
phina
.
input
.
Touch
;
touchList
:
phina
.
input
.
TouchList
;
updater
:
phina
.
app
.
Updater
;
width
:
number
;
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
clear
(
type
:
string
)
:
this
;
clearEventListener
(
type
:
string
)
:
this
;
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
;
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
;
enableDatGUI
(
callback
:
Function
)
:
this
;
enableStats
()
:
this
;
fire
(
e
:
{
type
:
string
}
)
:
this
;
fitScreen
()
:
void
;
flare
(
type
:
string
,
param
?:
object
)
:
this
;
has
(
type
:
string
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
kill
()
:
this
;
off
(
type
:
string
,
listener
:
Function
)
:
this
;
on
(
type
:
string
,
listener
:
Function
)
:
this
;
one
(
type
:
string
,
listener
:
Function
)
:
this
;
popScene
()
:
phina
.
display
.
DisplayScene
;
pushScene
(
scene
:
phina
.
display
.
DisplayScene
)
:
this
;
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
replaceScene
(
scene
:
phina
.
display
.
DisplayScene
)
:
this
;
run
()
:
this
;
start
()
:
this
;
}
Hierarchy (
View Summary
)
phina
.
display
.
CanvasApp
GameApp
Index
Properties
accelerometer
awake
current
Scene
current
Time
delta
Time
dom
Element
elapsed
Time
fps
frame
grid
X
grid
Y
height
interactive
keyboard
mouse
pointer
pointers
root
Scene
start
Time
ticker
touch
touch
List
updater
width
Methods
add
Event
Listener
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
enable
Dat
GUI
enable
Stats
fire
fit
Screen
flare
has
has
Event
Listener
kill
off
on
one
pop
Scene
push
Scene
remove
Event
Listener
replace
Scene
run
start
Properties
accelerometer
accelerometer
:
phina
.
input
.
Accelerometer
awake
awake
:
boolean
current
Scene
currentScene
:
phina
.
display
.
DisplayScene
Readonly
current
Time
currentTime
:
number
Readonly
delta
Time
deltaTime
:
number
dom
Element
domElement
:
HTMLElement
Readonly
elapsed
Time
elapsedTime
:
number
fps
fps
:
number
frame
frame
:
number
grid
X
gridX
:
phina
.
util
.
Grid
grid
Y
gridY
:
phina
.
util
.
Grid
height
height
:
number
interactive
interactive
:
phina
.
app
.
Interactive
keyboard
keyboard
:
phina
.
input
.
Keyboard
mouse
mouse
:
phina
.
input
.
Mouse
pointer
pointer
:
phina
.
input
.
Touch
pointers
pointers
:
phina
.
input
.
Touch
[]
root
Scene
rootScene
:
phina
.
display
.
DisplayScene
Readonly
start
Time
startTime
:
number
ticker
ticker
:
phina
.
util
.
Ticker
touch
touch
:
phina
.
input
.
Touch
touch
List
touchList
:
phina
.
input
.
TouchList
updater
updater
:
phina
.
app
.
Updater
width
width
:
number
Methods
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
clear
clear
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Event
Listener
clearEventListener
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
dispatch
Event
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
dispatch
Event
By
Type
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
Parameters
type
:
string
param
:
object
Returns
this
enable
Dat
GUI
enableDatGUI
(
callback
:
Function
)
:
this
Parameters
callback
:
Function
Returns
this
enable
Stats
enableStats
()
:
this
Returns
this
fire
fire
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
fit
Screen
fitScreen
()
:
void
Returns
void
flare
flare
(
type
:
string
,
param
?:
object
)
:
this
Parameters
type
:
string
Optional
param
:
object
Returns
this
has
has
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
kill
kill
()
:
this
Returns
this
off
off
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
on
on
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
one
one
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
pop
Scene
popScene
()
:
phina
.
display
.
DisplayScene
Returns
phina
.
display
.
DisplayScene
push
Scene
pushScene
(
scene
:
phina
.
display
.
DisplayScene
)
:
this
Parameters
scene
:
phina
.
display
.
DisplayScene
Returns
this
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
replace
Scene
replaceScene
(
scene
:
phina
.
display
.
DisplayScene
)
:
this
Parameters
scene
:
phina
.
display
.
DisplayScene
Returns
this
run
run
()
:
this
Returns
this
start
start
()
:
this
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
accelerometer
awake
current
Scene
current
Time
delta
Time
dom
Element
elapsed
Time
fps
frame
grid
X
grid
Y
height
interactive
keyboard
mouse
pointer
pointers
root
Scene
start
Time
ticker
touch
touch
List
updater
width
Methods
add
Event
Listener
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
enable
Dat
GUI
enable
Stats
fire
fit
Screen
flare
has
has
Event
Listener
kill
off
on
one
pop
Scene
push
Scene
remove
Event
Listener
replace
Scene
run
start
phina.js.d.ts
Loading...