Skip to content

Instantly share code, notes, and snippets.

@RobDangerous
Created July 16, 2014 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobDangerous/ee474f8a0d043ddc98ed to your computer and use it in GitHub Desktop.
Save RobDangerous/ee474f8a0d043ddc98ed to your computer and use it in GitHub Desktop.
package;
import kha.Game;
import kha.Loader;
class TestGame extends Game {
public function new()
{
super("Test", false);
}
override public function init(): Void {
Loader.the.loadRoom("level", levelLoaded);
}
private function levelLoaded(): Void {
trace("Printing all available images:");
for (s in Loader.the.getAvailableImages())
trace(s);
trace("Done");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment