Main
| Kind | class |
| Package | (root) |
| Full name | Main |
| Source | source/Main.hx |
| Extends | Sprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
fpsVar | FPSCounter | yes | — | — |
instance | Main | yes | — | — |
superDangerMode | Bool | yes | #if sys Sys.args().contains("-troll") #else false #end | final |
askedToUpdate | Bool | yes | false | — |
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.
main
static function main():Void
new (constructor)
function new()
isPlayState
static function isPlayState():Bool
getTime
static function getTime():Float
Only compiled when #if ACHIEVEMENTS_ALLOWED Achievements.load(); #end + #if DISCORD_ALLOWED DiscordClient.prepare(); #end.
changeFPSColor
static function changeFPSColor(color:FlxColor)
Only compiled when #if ACHIEVEMENTS_ALLOWED Achievements.load(); #end + #if DISCORD_ALLOWED DiscordClient.prepare(); #end.
| Parameter | Type | Default |
|---|---|---|
color | FlxColor | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
game | — | no |
| Method |
|---|
static function __init__():Void |
function setupGame():Void |
static function resetSpriteCache(sprite:Sprite):Void |