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
#! /usr/bin/perl | |
# Haxelib Bulk Install | |
# Install from git - [name] [github repo] | |
# Update library - [name] update | |
# Set library version - [name] set [version] | |
# Remove library - [name] remove/delete/del | |
use LWP::Simple; | |
use strict; |
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
// VARIABLES | |
var hologramColorInput:FlxUIInputText; | |
// UI INITIALIZATION | |
hologramColorInput = new FlxUIInputText(120, 200, 100, "", 8); | |
hologramColorInput.focusLost = () -> { | |
FlxG.save.data.hologramColor = ClientPrefs.chartingHologramColor = Std.parseInt('0xFF' + hologramColorInput.text.replace('#', '')); | |
dummyArrow.color = FlxG.save.data.hologramColor; | |
} |
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
enum abstract ChartActionType(Int) from Int to Int { | |
var AddNote:Int = 0; | |
var RemoveNote:Int = 1; | |
var AddEvent:Int = 2; | |
var RemoveEvent:Int = 3; | |
} | |
typedef ChartAction = { | |
var action:ChartActionType; | |
var data:Dynamic; | |
} |
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 flixel.math.FlxPoint; | |
import flixel.math.FlxRect; | |
import flixel.math.FlxVector; | |
import haxe.ds.Vector; | |
class Ray | |
{ | |
public var start:FlxPoint; |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<ctype.h> | |
class SimpleString { | |
public: | |
SimpleString(const char* text) { | |
raw_str = (char**)malloc((size_t)(sizeof(const char*) * strlen(text))); | |
strcpy(*raw_str, text); |
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
abstract Bitfield(Int) from Int to Int | |
{ | |
inline public function new(num:Int) | |
{ | |
this = num; | |
} | |
public inline function setBit(n:Int) | |
{ | |
this |= 0x1 << n; |
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 flixel.FlxCamera; | |
import flixel.FlxG; | |
import flixel.FlxSprite; | |
import flixel.util.FlxColor; | |
class CoolCamera | |
{ | |
public static var camera1:FlxCamera; |
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 flixel.FlxG; | |
import flixel.FlxObject; | |
class AABB extends FlxObject | |
{ | |
var collider:FlxObject; | |
var isColliding:Bool; |
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 flixel.system.FlxAssets.FlxShader; | |
// creds to shadertoy for the shader | |
// creds to halfbuzz for helpin with excluding transparency | |
class NoiseShader extends FlxShader { | |
@:glFragmentSource(" | |
#pragma header |
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 flixel.FlxG; | |
using Math; | |
using flixel.math.FlxMath; | |
class Conductor | |
{ | |
public static var bpm:Int = 100; |