• L
    laxa88

    Not sure when this was fixed, but I tried it again today after updating Kha from repo and everything is now working fine. Thanks!

    posted in Kode read more
  • L
    laxa88

    I have a folder in my project named "Libraries", and inside, I have Lubos's sharing library (https://github.com/luboslenco/share_kha). I append my khafile.js with the following:

    project.addLibrary('share_kha');
    

    I export to android-native. It says the file ShareKore.h is not found when I try to build+run the project.

    Alt text

    I notice that the library is separate from the project folder, hence why it couldn't be found... I could manually fix the path, but I'm wondering if Kha already does it automatically... so what did I do wrong?

    posted in Kode read more
  • L
    laxa88

    @Robert In my case I have something like this:

    function loadAssets ()
    {
    	var assets = [
    		"file_1.txt",
    		"file_2.txt",
    		"file_3.txt",
    		"file_4.txt"
    	];
    
    	for (i in 0 ... assets.length)
    	{
    		loadBlobFromPath(assets[i], onLoadBlob);
    	}	
    }
    
    function onLoadBlob (textData:Blob, path:String)
    {
    	// Assume _dict is of type Map<String, Blob>
    	_dictionary.set(path, textData);
    }
    

    I may need to store key-value pair of the loaded assets so I can retrieve the necessary data whenever I need it. Is there a better way to do it?

    posted in Kode read more
  • L
    laxa88

    I had a similar issue with Jerix. What if he's not passing an anonymous function? how would he get the path otherwise?

    posted in Kode read more
  • L
    laxa88

    I was wondering, shouldn't it be this?:

    Scheduler.addTimeTask(engine.update, 0, 1/60);

    posted in Kode read more
  • L
    laxa88

    Hi,

    Based on this (latest, as of writing) commit: https://github.com/KTXSoftware/Kha/commit/29290589d555f9e3d42ab38504f95a628fb05cbc

    I have tested the following target builds so far:
    osx - OK
    html5 - OK
    android - OK
    android-native - 5000+ errors on Android Studio, I don't know what I'm doing wrong
    iOS - error when compiling in XCode, refer to screenshot below:

    Alt text

    I don't really have any issues with Kha right now (I'm testing and targeting html5), but just thought I'd point out what works and doesn't for me right now. I'm hoping nomorerooms will have fixed something by then? 🙂

    posted in Kode read more
  • L
    laxa88

    To be fair, I think @fermmm couldn't find the Kha Wiki page, so maybe that's why people usually can't find a quickstart guide for it.

    It's not linked directly from Robert's main page -- kha.ktxsoftware.com points to tech.ktxsoftware.com, and on the top bar, the "The Docs" link points elsewhere, and the page doesn't point to the Kha Github page... you can only find it if you google the Kha Github page -> click on the Wiki link on the side panel.

    Personally it actually took me a few days to memorise how to get to the wiki page (I didn't bookmark it) 😛 Imagine how many people dropped out of checking Kha out at the beginning. 🙂

    posted in Kode read more
  • L
    laxa88

    @Robert thanks for looking into it! and oops. i didn't know what i was talking about regarding audio. sorry!

    posted in Kode read more
  • L
    laxa88

    I noticed that the quality/pitch of the audio is different when I load them as either sound or music.

    In HTML5 target:

    • If I load a music as sound, and try to play it, the audio is different (higher pitched)
    • If I load a music as music, and try to play it, the audio is correct (same pitch as original audio file in the assets folder)

    For OSX target:

    • If I load a music as either sound or music and try to play it, the audio is different (higher pitched)

    I'm guessing that the problem is not the "pitch" of the audio, but rather the "speed" of it, because on the HTML5 target, I noticed that the sound-version of the music is faster than the music-version of the music.

    Edit: the music file i used was WAV format.

    It's not really an issue for me, but just thought I'd ask... this might be an issue for rhythm games.

    posted in Kode read more
  • L
    laxa88

    I'd like to think of Kha as a Haxe equivalent of SDL. You have access to the lowest level method, then you roll out your own game engine, libraries or whatever on top of Kha. 🙂

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.