I'm testing Kore Studio and the empty project.
If I set a breakpoint in the update function (that calls trace), it trace three times and then breaks. Why doesn't it break in the first iteration?
Although its breaking, every variable I try to watch display an 'variable is not definied' error.
package;
import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
class Empty {
public function new() {
System.notifyOnRender(render);
Scheduler.addTimeTask(update, 0, 1 / 60);
}
function update(): Void {
var i = 0;
i += 2;
var a = 3;
a += i;
var t:Float = System.time;
trace(i + t);
}
function render(framebuffer: Framebuffer): Void {
}
}
I tried the HaxeDeveloper project (project-debug-html5.hxproj) but before building I get this error in Chrome and a blank screen.
SystemImpl.hx:56 ReferenceError: require is not defined
at Function.kha_SystemImpl.init (SystemImpl.hx:64)
at Function.kha_System.init (System.hx:26)
at Function.Main.main (Main.hx:7)
at SyncBuilder.hx:9
at SyncBuilder.hx:9
The HTML5 target doesn't appear to work outside the embedded Chrome in Kode Studio.
How to build and debug with HTML5?