Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import haxepunk.Scene;
- import haxepunk.graphics.Spritemap;
- import cpp.vm.ExecutionTrace;
- class MainScene extends Scene
- {
- private var s:Spritemap;
- override public function begin()
- {
- s = new Spritemap("graphics/player_kaira2.png", 75, 64);
- trace(s == null ? "null" : "not null");
- ExecutionTrace.traceFunctions();
- trace(s);
- ExecutionTrace.traceOff();
- }
- }
- ---------------------------------------------------
- $ lime run cpp -debug
- MainScene.hx:13: not null
- GC::new : 20
- GC::new : 8
- GC::new : 20
- GC::new : 20
- GC::new : 20
- haxe.Log::__default_trace : 77
- haxepunk.graphics.Image::toString : 316
- GC::new : 29
- GC::new : 30
- haxepunk.graphics.Image::get_width : 294
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement