Hello.
i run cmd command
node c:\Motion-Twin\haxe\lib\kha\16,1,2\make
and get error:
resolve(project);
^
ReferenceError: resolve is not defined
tried to "use strict" but no luck.
node version is 7.1.0
What am i doing wrong?
resolve is not defined
Hello.
i run cmd command
node c:\Motion-Twin\haxe\lib\kha\16,1,2\make
and get error:
resolve(project);
^
ReferenceError: resolve is not defined
tried to "use strict" but no luck.
node version is 7.1.0
What am i doing wrong?
resolve is not defined
There is no module web-frame at npm. So i actually cant understand what it want from me.
resolve is not defined
Kode Studio does have everything in the box (Kha, Haxe, node, everything) but if a project does contain a Kha subdirectory it will prefer that - and in the case of the empty project that one is a little too old (but I update it semi-regularly so most of the time that works). When there is no Kha directory it falls back to the khaPath option and if that is not set it falls back to the bundled Kha. The globally installed Haxe isn't used in any situation.
resolve is not defined
Okay. Thank you. How can i build my project to release from KodeStudio with "inabox" everything without typing any commands at cmd?
resolve is not defined
Hit F1 and look for the "Compile Kha Project" command. Note that in a second step you'll still have to open the created project in Visual Studio/XCode/... if you want to create a native release build - but that doesn't involve any command typing either, yay (and will likely change soon, I think I have everything in place for that).
resolve is not defined
Oh! That's fantastic!
Inabox build is perfect!
Gonna write my first kha game before the year ends!
Thanx a lot!
Can you help me with loading assets?
I mean not the local path but url.
What is the best practice to do that with Kha?
resolve is not defined
I need it for html5 in first.
Better if there will be way to do cross-platform with mobile devices (ios, android, windows-phone).
Where can i get example of doing such things with kha? All code i searched uses compiled assets.
I need to asyncronuosly load json files, graphic files (raw or pre-finished, png is prefered), sound files(mp3/ogg).
I explain. I search for the framework that i can use for making games on platforms i write before. First of all i do love making social casual games, so web target is prefered. So because of genre i need to do regular updates and compiling all the resources to client will be very very bad way. More than that some games i made with all the contens are much more that 500Mb, so async loading is required to show content to user when its need to be shown.
It will be great if framework let me do cross-compile all the stuff. Its okay if i need to write some wrappers for loaders to each platform. I can use conditional compilation for different targets its okay.
resolve is not defined
On html5 targets all assets loading is async (naturally), that's also true for what you call compiled assets. For native targets it's currently sync but the api itself is the same and it'll become async when I get to it.
Anyway, use this: http://api.kha.technology/kha/Assets.html#loadImageFromPath
resolve is not defined
There is alternative that works for now in cpp targets:
https://github.com/KTXSoftware/Kha/issues/219#issuecomment-229762435
But I didn't test yet on mobile devices.