Skip to content

Instantly share code, notes, and snippets.

View JOELwindows7's full-sized avatar
🏠
Working from home

Joel Robert Justiawan JOELwindows7

🏠
Working from home
View GitHub Profile
@JOELwindows7
JOELwindows7 / button_sprite.hx
Created June 12, 2021 18:36
The Mouse input in Haxe (Games From Scratch)
// https://gamefromscratch.com/haxeflixel-tutorial-mouse-input/
import flixel.FlxState;
import flixel.FlxSprite;
import flixel.FlxG;
class PlayState extends FlxState
{
var sprite:FlxSprite;
var scaleFactor = 0.1;
override public function create():Void
@JOELwindows7
JOELwindows7 / GJkeys.hx
Created October 11, 2021 13:01
GameJolt keys template for HaxeFlixel Friday Night Funkin
// JOELwindows7: from https://github.com/TentaRJ/GameJolt-FNF-Integration
// Yeah uh, don't share the live GameJolt key publicly pls. you must gitignore it
// and you might wanna manually upload instead with your private GameJolt keys compiled if you insist.
package;
class GJKeys
{
public static var id:Int = 0; // Put your game's ID here
public static var key:String = ""; // Put your game's private API key here
}
@JOELwindows7
JOELwindows7 / FlxAction.hx
Last active May 28, 2022 17:40
Temporary Patch of FlxAction.hx where it fixes forgot import Android digital input class, for stable HaxeFlixel until the last dev pull back here stable
package flixel.input.actions;
import flixel.input.FlxInput.FlxInputState;
import flixel.input.IFlxInput;
import flixel.input.actions.FlxActionInput.FlxInputDeviceID;
import flixel.input.actions.FlxActionInput.FlxInputType;
import flixel.input.actions.FlxActionInputAnalog.FlxAnalogAxis;
import flixel.input.actions.FlxActionInputAnalog.FlxAnalogState;
import flixel.input.actions.FlxActionInputAnalog.FlxActionInputAnalogClickAndDragMouseMotion;
import flixel.input.actions.FlxActionInputAnalog.FlxActionInputAnalogGamepad;