I'm building a game using the HaxeFlixel framework. I'm using Sublime Text as my IED. I'm also following this as my first program so I have run flixel tpl -n "HelloWorld"
to setup my project.
My folder structure looks like this:
My build.hxml
looks like this:
#-main source/MenuState
#-neko bin/text.n
#lime test neko
-main Main.hx
-neko Test.n
#-cmd neko Test.n
My research has included:
Youtube video starting at 7:22
If someone could show me what I'm doing wrong and explain the solution I would be so happy as this has taken a few hours of my time.
You're applying the wrong solution to the problem :)
build.hxml
is essentially a file with multiple arguments that haxe should note while compiling. When compiling haxe, you could run haxe -x SomeHaxeFile.hx
. However - this is the solution for compiling raw haxe. Different haxe library's ask to be compiled in their own ways, as, if they are complex enough (ie - haxeflixel), there are lots of things running in the background of compilation, for example putting assets like images into the build.
Haxeflixels build method is through lime
s build system. So, to run on neko, you would type into terminal lime test neko
. This is the best way to compile haxeflixel games, and is shown in the official haxeflixel guide. http://haxeflixel.com/documentation/hello-world-command-line/
This command should be ran in the folder with project.xml
, as that file contains the information haxeflixel (and thus haxe) needs to build. You can ignore hxml files while working with haxeflixel.