Recent Posts

I added a minimal multiple-render-targets test repo, can also be used as an example:
https://github.com/luboslenco/kha_mrt

posted in Kha read more

Something like this should do for both html5 and krom. It's eval() but so far good enough for me. ammo.js has to be included as an asset in khafile.js.

#if js
    static function loadJsLib(jsname:String, done:Void->Void) {
    kha.LoaderImpl.loadBlobFromDescription({ files: [jsname] }, function(b:kha.Blob) {
        untyped __js__("(1, eval)({0})", b.toString());
        done();
    });
}
#end

posted in Kode Studio read more

Heyo,

Currently you would have to implement cube map related functionality for the graphics API of your interest yourself. As far as I know none of the targets have it. Would come handy here too. :)

posted in Kha read more

The holy grail is near!

posted in Krom read more

Hey, feel free to open issue at Zui repo and we can investigate further. The font size parameters passed should only set g.fontSize internally.

posted in Kha read more

For picking, what about one of the solutions here?
http://www.opengl-tutorial.org/miscellaneous/clicking-on-objects/

The tutorials are modelled after that site, so following that should be straightforward.
Physics engine may be overkill just for that, but in any case haxebullet is here.

Sliders were fixed by Romamik, can't take credit for that :)

posted in Kha read more

Hi,

This should work. Can you upload a minimal sample project?

posted in Kha read more

Hey!

Git Kha and KodeStudio come with Haxe bundled internally, and it is already using Haxe 3.3.0.
Haxelib Kha is waiting for Haxe 3.3.0 release, and that's why it's very outdated at this point..

posted in Kha read more

Uh, Android target spits out gradle files - you can build and deploy apk using those with a single command.

posted in Kha read more

Hey,
You can add defines through khafile.js like this:

project.addDefine('touch');

More options here:
https://github.com/KTXSoftware/Kha/wiki/khafile.js

And you may also use already built-in ones:

#if (sys_android || sys_android_native)

posted in Kha read more