Skip to content

randomnine/haxegon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Haxegon (version 0.10.0 (2017-08-26))

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.

Trying it out

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:

[blankproject.zip]

Documentation is available at haxegon.com, and a growing selection of example projects are available here. More coming soon!

Last Updates

0.10.0 (2017-08-26)

New features

  • 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 and Gfx.imagecolor to variables instead of functions. Also added three new shortcut functions to reset image drawing settings - Gfx.resetalpha(), Gfx.resetcolor() and Gfx.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);

Bug fixes/Tweaks

  • Removed deprecated startfullscreen setting from blankproject.zip.
  • Documentation updates.

(For a full update history, see the changelog.)

About

A haxe programming library for beginners. Powered by OpenFL and Starling.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haxe 100.0%