The Butano library that I'm using has tons of examples projects you can compile and get started with, go check that out! That's how I learned. My source code would not be any help at all since you'll want to write the game using C++.
oh yeah forgot you were using haxe