Haxegon is a tiny haxe programming library aimed at beginners. It's currently in alpha, so things are changing fast and stuff might be broken.
Haxegon compiles natively to HTML5 and Desktop (Win, Mac, Linux). Flash is also supported as a legacy/development platform.
Interested in trying it out? First install openfl via instructions here, then you can install Haxegon using haxelib:
haxelib install haxegon
Once the library is installed, use this blank project file to get started:
Documentation is available at haxegon.com, and a growing selection of example projects are available here. More coming soon!
- This is mostly just a compatibility update for OpenFL 6.0. Haxegon now works with the latest versions of OpenFL and Lime.
- Added support for
Key.ANY
. (Thanks to @nachoverdon for the suggestion!):
if(Input.pressed(Key.ANY)) // True if ANY key is being pressed right now
if(Input.justpressed(Key.ANY)) // True if ANY key has just been pressed
- Changed
Gfx.imagealpha
andGfx.imagecolor
to variables instead of functions. Also added three new shortcut functions to reset image drawing settings -Gfx.resetalpha()
,Gfx.resetcolor()
andGfx.reset()
:
Gfx.imagealpha = 0.5;
Gfx.imagecolor = Col.GREEN;
Gfx.drawimage(x, y, "someimage");
Gfx.resetalpha(); //Same as calling Gfx.imagealpha = 1
Gfx.resetcolor(); //Same as calling Gfx.imagecolor = Col.WHITE
Gfx.reset(); //Resets colour, alpha, rotation and scale
- Added an optional alpha parameter to
Text.display()
. (Thanks to @nachoverdon for the suggestion!)
Text.display(x, y, "spooky see through text", Col.WHITE, 0.5);
- Removed deprecated
startfullscreen
setting from blankproject.zip. - Documentation updates.
(For a full update history, see the changelog.)