[ Home ]

Library Documentation (v 0.12.1)

Core

Advanced functions to change how your program runs.
Core.version:String
Get the current version of Haxegon. Haxegon and its extensions use Sematic Versioning: https://semver.org/
Core.fps:Int
Change the game's framerate.
Core.time:Float
is equal to the number of seconds passed since the game started.
Core.showstats:Bool
Set to true to show stats like framerate.
Core.delaycall(f:Function, t:Float)
Tells Haxegon to call this function after "t" seconds have passed.
Core.quit()
Native targets only. Closes the application.
Core.mobilebrowser():Bool
Works on HTML5 target only (returns false on other targets). Returns true if the user is viewing the app in a mobile browser (like iPhone Safari).
Core.window:Window
Native targets only. Gives you access to the native window object. See OpenFL documentation for more information.