Skip to content

Instantly share code, notes, and snippets.

@larsiusprime
larsiusprime / example_bug.dfq
Created May 8, 2014 16:28
Example of posting Defender's Quest Save Slot data
<data>
<version number="0.0.0"/>
<demo_mode value="false"/>
<party>
<class_entry value="mcguffin">
<character handle="mcguffin" name="Azra" sex="male" hero="true">
<info level="1" xp="0"/>
<skills points="0"/>
<colors/>
<target boss="false" chance="false" default="null" effect="false" cheap="false" bulldog="false"/>
@larsiusprime
larsiusprime / dqbugs.php
Last active August 29, 2015 14:18
A script for calculating the number of "points" in a Github Milestone (using numeric labels as "points" in issues). Written by Adam Perry (@hoursgoby) for Level Up Labs, LLC. milestones.json is an example of the php output, progress.js is an example of the front-end display code
<?php
define("CLIENT_ID", "REDACTED");
define("CLIENT_SECRET", "REDACTED");
define("GITHUB_URL", "ssl://api.github.com");
define("GITHUB_PATH", "/repos/YOUR-NAME-HERE/YOUR-REPO-HERE/");
define("ISSUESTATE_OPEN", "open");
define("OUTPUT_FILENAME", "/path/to/milestones.json");
$milestones = processIssues(loadIssues());
$fp = fopen(OUTPUT_FILENAME, "w+");
@larsiusprime
larsiusprime / Main.hx
Last active August 29, 2015 14:18
OpenFL Text issues reproduction case.
package;
import openfl.text.TextField;
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Sprite;
import openfl.Assets;
import openfl.text.TextFormat;
@larsiusprime
larsiusprime / Main.hx
Created April 24, 2015 17:52
Reproduction case for Flixel BitmapData glitch with stamp()
package;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.Lib;
import flixel.FlxGame;
import flixel.FlxState;
@larsiusprime
larsiusprime / Main.hx
Created April 24, 2015 18:09
Blurry Bitmap rendering on half pixels reproduction case
package;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.Lib;
import flixel.FlxGame;
import flixel.FlxState;
@larsiusprime
larsiusprime / Main.hx
Last active August 29, 2015 14:25
Repro scaling issues in flixel-ui with OpenFL-next
package;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import openfl.Assets;
import openfl.geom.Rectangle;
import openfl.geom.Point;
import openfl.geom.Matrix;
package com.leveluplabs.tdrpg;
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import flixel.FlxG;
import flixel.graphics.FlxGraphic;
import openfl.Lib;
/**
* ...
@larsiusprime
larsiusprime / PakLibrary.hx
Last active October 25, 2021 07:25
Pak & Unpack system
package;
import haxe.io.Bytes;
import lime.utils.UInt8Array;
import lime.graphics.Image;
import lime.graphics.ImageBuffer;
import openfl.Assets.AssetLibrary;
import openfl.Assets;
import openfl.Lib;
import openfl.utils.ByteArray;
@larsiusprime
larsiusprime / Main.hx
Created July 31, 2015 18:08
Text regression reproduction case
package;
import openfl.display.Sprite;
import openfl.Lib;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFormat;
import openfl.text.TextFormatAlign;
@larsiusprime
larsiusprime / 3ds.png
Created April 3, 2016 20:18
silly OpenFL 3-window 3DS mockup
Put this image under "assets":
http://imgur.com/wFG4Tgc