[back to index]

Library Reference (v 0.9.0)

Core

Advanced functions to change how your program runs.
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.fps:Int
Change the game's framerate.
Core.quit()
Native targets only. Closes the application.
Core.window:Window
Native targets only. Gives you access to the native window object. See OpenFL documentation for more information.
Core.delaycall(f:Function, t:Float)
Tells Haxegon to call this function after "t" seconds have passed.
Core.callfunctionafterupdate(f:Function)
Advanced! Tells Haxegon to call this function after each scene's update() function.
Core.callfunctionafterrender(f:Function)
Advanced! Tells Haxegon to call this function after each scene's render() function.