Skip to content

Instantly share code, notes, and snippets.

@Draknek
Draknek / LinkTest.as
Created August 1, 2012 12:33
TextField.htmlText links in Haxe aren't clickable
// AS3 version, works
package
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.StyleSheet;
public class LinkTest extends Sprite
// Not enough context here to be useful, I will make a self-contained example soon.
// This code allocates memory:
_timer += (FP.timeInFrames ? _anim._frameRate : _anim._frameRate * FP.elapsed) * rate;
// This code does not:
var timeAdd:Number = _anim._frameRate * rate;
if (! FP.timeInFrames) timeAdd *= FP.elapsed;
_timer += timeAdd;
@Draknek
Draknek / gist:4466836
Created January 6, 2013 12:29
Android AIR app.xml for These Robotic Hearts of Mine
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/2.6">
<id>org.draknek.hearts</id>
<versionNumber>1.0.5</versionNumber>
<filename>RoboticHearts</filename>
<name>RoboticHearts</name>
<description>Narrative-based puzzle game</description>
<copyright>Alan Hazelden</copyright>
@Draknek
Draknek / Main.as
Last active December 17, 2015 00:29
Upscale images nicely
package
{
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
[SWF(width = "640", height = "480", backgroundColor="#000000")]
public class Main extends Sprite
{
@Draknek
Draknek / readme.txt
Last active December 25, 2015 20:19 — forked from anonymous/readme.txt
PuzzleScript demake of 868-HACK
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / readme.txt
Last active August 24, 2019 00:25 — forked from anonymous/readme.txt
Spooky Pumpkin Game (made in PuzzleScript)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / SimpleWorld.as
Created November 8, 2013 00:38
FlashPunk Alarm example
package
{
import flash.events.TextEvent;
import net.flashpunk.FP;
import net.flashpunk.graphics.Text;
import net.flashpunk.tweens.misc.Alarm;
import net.flashpunk.World;
public class SimpleWorld extends World
{
@Draknek
Draknek / readme.txt
Last active December 31, 2015 13:59 — forked from anonymous/readme.txt
1-2-3-Ban
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / readme.txt
Last active January 4, 2016 04:29 — forked from anonymous/readme.txt
Sticky Candy Puzzle Saga
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / readme.txt
Last active August 23, 2019 23:55 — forked from anonymous/readme.txt
Happy Birthday Hennell: Sokoban Edition 2014
Play this game by pasting the script in http://www.puzzlescript.net/editor.html