Best practice for updating mainloop objects in heaps


#1

Is it ready solution for heaps framework to update some game objects? Method mainloop of App registering as single available callback function as hxd.System.setLoop(mainLoop). I’d like to register some of my functions, for example that turns preloader image continuosly. Have I make some sort of “updates controller” or is it present in framework?


#2

Haxe itself has a MainLoop class. Maybe it’s good for your needs?


#3

Thanks, I’ve already made my own singleton update controller that called every tick in main loop.