Skip to main content

Main

Kindclass
Package(root)
Full nameMain
Sourcesource/Main.hx
ExtendsSprite

Public fields​

NameTypeStaticDefaultNotes
fpsVarFPSCounteryes——
instanceMainyes——
superDangerModeBoolyes#if sys Sys.args().contains("-troll") #else false #endfinal
askedToUpdateBoolyesfalse—

Public methods​

shutdownGameMode​

static function shutdownGameMode():Void

Best-effort GameMode cleanup. Called on application exit; the daemon also unregisters the process automatically when it terminates.

View source

main​

static function main():Void

View source

new (constructor)​

function new()

View source

isPlayState​

static function isPlayState():Bool

View source

getTime​

static function getTime():Float

Only compiled when #if ACHIEVEMENTS_ALLOWED Achievements.load(); #end + #if DISCORD_ALLOWED DiscordClient.prepare(); #end.

View source

changeFPSColor​

static function changeFPSColor(color:FlxColor)

Only compiled when #if ACHIEVEMENTS_ALLOWED Achievements.load(); #end + #if DISCORD_ALLOWED DiscordClient.prepare(); #end.

ParameterTypeDefault
colorFlxColor—

View source

Internals​

Private / internal members
FieldTypeStatic
game—no
Method
static function __init__():Void
function setupGame():Void
static function resetSpriteCache(sprite:Sprite):Void