Skip to content

Instantly share code, notes, and snippets.

View 01010111's full-sized avatar
👽
🕹

Will Blanton 01010111

👽
🕹
View GitHub Profile

Movement Attributes

  • Flying
    • Fixed Path (Reverse Arc)
    • Fixed Path (Circle)
    • Fixed Path (Linear Horizontal)
    • Fixed Path (Linear Vertical)
    • Fixed Path (Linear Diagonal)
    • Fixed Path (Sine Horizontal)
    • Free Path
@01010111
01010111 / index.js
Created July 14, 2023 16:19
Itch.io Jam Page - Add to Google Calendar Userscript
// ==UserScript==
// @name Itch Jam Page - Add to Google Calendar
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Scrapes date data from jam site and adds a google calendar link
// @author 01010111
// @match https://itch.io/jam/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=itch.io
// @grant none
// ==/UserScript==
import flixel.system.FlxAssets;
class CameraShadowFilter extends FlxShader {
@:glFragmentSource('
#pragma header
uniform float uOffsetX;
uniform float uOffsetY;
uniform vec4 uShadow;
@01010111
01010111 / LineParticles.hx
Created January 28, 2021 21:09
Bloomin' Particles
import zero.utilities.Vec2;
import h2d.Graphics;
using zero.utilities.EventBus;
class LineParticles extends Graphics {
var lines:Array<LineData> = [];
public function new(parent) {
@01010111
01010111 / Export Tag Frames.lua
Last active December 4, 2023 16:54
Export all frames within tags as separate PNG files
-- Export all frames within tags as seperate PNG files
-- based on Export Tags script by StarJackal57: https://github.com/StarJackal57/Aseprite-Export-Tags
-- Ex: if Sprite Prefix is "Sprite", and there is a tag "Run", and there are three frames within that tag,
-- you will get three files:
-- "Sprite_Run_0.png"
-- "Sprite_Run_1.png"
-- "Sprite_Run_2.png"
-- Get current sprite
local sprite = app.activeSprite
@01010111
01010111 / PlayState.hx
Created August 11, 2020 16:08
Flixel - tags and single overlap test
package states;
import flixel.FlxG;
import flixel.FlxObject;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.group.FlxGroup;
class PlayState extends FlxState
{
@01010111
01010111 / ThreeDeeTest.hx
Created February 7, 2020 22:03
3D in openfl :0
package objects;
import openfl.display.Bitmap;
import openfl.geom.Rectangle;
import openfl.Assets;
import zero.utilities.IntPoint;
import openfl.display.BitmapData;
import zero.utilities.Vec2;
import openfl.display.Sprite;
@01010111
01010111 / Tween.hx
Last active February 6, 2020 19:36
Simple Dimple Tweening in Haxe
package util;
using Math;
using zero.extensions.FloatExt;
class Tween {
static var active_tweens:Array<Tween> = [];
static var pool:Array<Tween> = [];
@01010111
01010111 / SimplePlayer.hx
Created January 21, 2020 16:19
Simplest Flixel Player
import flixel.FlxG;
import flixel.FlxObject;
import flixel.FlxSprite;
class Player extends FlxSprite {
var WALK_SPEED = 200;
var JUMP_POWER = 300;
var FRAME_WIDTH = 16;
var FRAME_HEIGHT = 16;
@01010111
01010111 / PlayState.hx
Created December 13, 2019 14:30
Scrollable Text Area
package states;
import flixel.FlxG;
import flixel.FlxState;
import flixel.math.FlxRect;
import flixel.text.FlxText;
using Math;
class PlayState extends FlxState {