This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Input; | |
typedef AccelEvent = { | |
timestamp:Float, | |
value:Float, | |
axis:Int | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Haxe implementation ported from https://gist.github.com/Flafla2/f0260a861be0ebdeef76 | |
// Related article: http://flafla2.github.io/2014/08/09/perlinnoise.html | |
class Perlin { | |
public var repeat :Int; | |
public function new(repeat :Int = -1) { | |
this.repeat = repeat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package util; | |
/** | |
* ... | |
* @author Kevin | |
*/ | |
@:build(util.AssetPathsMacro.build()) | |
class AssetPaths | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["lua", "$file"], | |
"file_regex": "^lua: (...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.lua" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Color; | |
import luxe.Component; | |
import luxe.Sprite; | |
/** | |
* This will set the color of any Sprite to a gradient. | |
* | |
* @author Abel Toy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Sprite; | |
import luxe.Color; | |
import luxe.Parcel; | |
import luxe.ParcelProgress; | |
import luxe.options.ParcelProgressOptions; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Text; | |
import luxe.Color; | |
import luxe.Vector; | |
import luxe.Log.*; | |
import luxe.options.TextOptions; | |
class FPS extends Text { |