HSU

The game

done

done.

done(e: any)
Parameters
e (any)

importFile

importFile.

importFile($0: Object)
Parameters
$0 (Object)
Name Description
$0.file any
$0.width any
$0.height any

absToRelXYWidthHeight

absToRelXYWidthHeight.

absToRelXYWidthHeight(abs: any, w: any)
Parameters
abs (any)
w (any)

absToRel

absToRel.

absToRel(abs: any, max: any)
Parameters
abs (any)
max (any)

exportFile

exportFile.

exportFile($0: Object)
Parameters
$0 (Object)
Name Description
$0.gameData any
$0.width any

newName

newName.

newName(id: any)
Parameters
id (any)

inArea

inArea.

inArea($0: Object)
Parameters
$0 (Object)
Name Description
$0.areas any
$0.x any
$0.y any

inHandle

inHandle.

inHandle($0: Object)
Parameters
$0 (Object)
Name Description
$0.areas any
$0.x any
$0.y any

draw

draw.

draw($0: Object)
Parameters
$0 (Object)
Name Description
$0.context any
$0.areas any
$0.image any
$0.width any
$0.height any
$0.selected any

drawArea

drawArea.

drawArea($0: Object)
Parameters
$0 (Object)
Name Description
$0.context any
$0.area any
$0.active any

getShade

getShade.

getShade()

physicsLoop

physicsLoop.

physicsLoop

getGameState

getGameState.

getGameState()
Deprecated: This is deprecated.

movePlayer

Take all the input requests give an updated player

movePlayer($0: Object)
Parameters
$0 (Object)
Name Description
$0.player any
$0.width any
$0.height any
$0.up any
$0.down any
$0.left any
$0.right any

clearStats

clearStats.

clearStats()

updateStats

updateStats.

updateStats(key: any, value: any)
Parameters
key (any)
value (any)

updateDiagnostDisp

updateDiagnostDisp.

updateDiagnostDisp($0: Object)
Parameters
$0 (Object)
Name Description
$0.fps any
$0.collisionTime any
$0.mapMakingTime any
$0.collisionChecks any
$0.collisionCalls any

renderConversation

renderConversation.

renderConversation(conversation: any)
Parameters
conversation (any)

canvasProvider

canvasProvider.

canvasProvider()

Story

Story.

new Story()
Static Members
getChanges(oldState, state)
applyChanges(state, changes)
areaObjectMap($0)
relativeToAbsolute($0)
loadGameState($0)
isTime($0)
isWithinInterval($0)
isWithinDistance($0)
isWithinArea($0)
isTriggered($0)
isRecurrentEvent(e, now)
updateGameState($0)
startConversation($0)
createSelector(sel)
setDestination($0)
updateDialog($0)
newId(collection)

Util

Util.

new Util()
Static Members
dist(a, b)
eq(a, b)

Physics

A class containing methods for dealing with physics

new Physics()
Static Members
updatePhysicsState(state)

Sprite

Sprite.

new Sprite()
Static Members
loadSprites(args, canvasProvider)
loadSpriteData(args)
drawActorToContext($0)
getRotationFromFacing(facing)

Characters

A class containing methods for dealing with characters

new Characters()
Static Members
moveNPC(state)

Camera

A class for dealing with perspective and rendering

new Camera()
Static Members
updateViewport(arguments)
drawScene(arguments)