Skip to content

Instantly share code, notes, and snippets.

View AndreiRudenko's full-sized avatar

Andrei Rudenko AndreiRudenko

View GitHub Profile
@AndreiRudenko
AndreiRudenko / Accelerometer.hx
Created June 21, 2017 18:29 — forked from josuigoa/Accelerometer.hx
Getting accelerometer values with Luxe engine
package;
import luxe.Input;
typedef AccelEvent = {
timestamp:Float,
value:Float,
axis:Int
}
@AndreiRudenko
AndreiRudenko / perlin.hx
Created March 5, 2017 18:16 — forked from anissen/perlin.hx
Perlin noise test
// 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;
}
@AndreiRudenko
AndreiRudenko / AssetPaths.hx
Created May 20, 2016 08:57 — forked from kevinresol/AssetPaths.hx
Macro to read asset paths
package util;
/**
* ...
* @author Kevin
*/
@:build(util.AssetPathsMacro.build())
class AssetPaths
{
@AndreiRudenko
AndreiRudenko / lua.sublime-build
Created September 24, 2015 13:54 — forked from rorydriscoll/lua.sublime-build
Sublime Text build system for Lua
{
"cmd": ["lua", "$file"],
"file_regex": "^lua: (...*?):([0-9]*):?([0-9]*)",
"selector": "source.lua"
}
@AndreiRudenko
AndreiRudenko / Gradient.hx
Last active August 29, 2015 14:27 — forked from AbelToy/Gradient.hx
Luxe Gradient Component
package;
import luxe.Color;
import luxe.Component;
import luxe.Sprite;
/**
* This will set the color of any Sprite to a gradient.
*
* @author Abel Toy
@AndreiRudenko
AndreiRudenko / ParcelSplash.hx
Last active August 29, 2015 14:27
A custom ParcelProgress for Luxe that shows a splashscreen
package;
import luxe.Sprite;
import luxe.Color;
import luxe.Parcel;
import luxe.ParcelProgress;
import luxe.options.ParcelProgressOptions;
@AndreiRudenko
AndreiRudenko / FPS.hx
Last active August 29, 2015 14:26 — forked from ruby0x1/FPS.hx
Simple FPS Text instance, modified from @RudenkoArt as an example for http://luxeengine.com
package;
import luxe.Text;
import luxe.Color;
import luxe.Vector;
import luxe.Log.*;
import luxe.options.TextOptions;
class FPS extends Text {