Skip to content

Instantly share code, notes, and snippets.

Steve steverichey

Block or report user

Report or block steverichey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
steverichey / FlixelProceduralLevelGenAttempt
Last active Dec 14, 2015
Very very basic ActionScript code to procedurally generate a Flixel level as an array of ones and zeroes. My first attempt at this sort of thing, turned out much better than expected.
View FlixelProceduralLevelGenAttempt
var data:Array = new Array();
var xPosition:uint = 0;
var yPosition:uint = 0;
// Set x and y boundaries
var xHeight:uint = 40;
var yHeight:uint = 30;
steverichey / gist:5100082
Created Mar 6, 2013
A copy of the Defaults.XML file.
View gist:5100082
<?xml version="1.0" encoding="utf-8" ?>
<time x="468" y="1" /> <!-- defaults: 474, -1 -->
<splash x="69" y="94" /> <!-- defaults: 69, 94 -->
<about x="4" y="26" okayx="361" okayy="191" /> <!-- defaults: 4, 26, 361, 191 -->
<instructions x="20" y="27" okayx="180" okayy="269" /> <!-- defaults: 20, 27, 180, 269 -->
<setendscore x="75" y="45" okayx="122" okayy="67" cancelx="46" cancely="71" /> <!-- defaults: 75, 45, 122, 67, 46, 71 -->
<scorewarning x="-42" y="13" okayx="248" okayy="29" /> <!-- defaults: -42, 13, 248, 29 -->
<scoreinput x="154" y="28" width="35" height="30" restrict="1234567890" maxchars="3" /> <!-- defaults: 154, 28, 35, 30, 1234567890, 3 -->
steverichey / DontMovePreloader
Created Dec 18, 2013
Custom Preloader for HaxeFlixel, used in Don't Move
View DontMovePreloader
import flash.Lib;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flixel.system.FlxPreloader;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
steverichey / Fullscreen FlxGame
Created Dec 18, 2013
The FlxGame class from my update to Gama11's MinimalistTD, demonstrating fullscreen resize code.
View Fullscreen FlxGame
import flash.Lib;
import flixel.FlxG;
import flixel.FlxGame;
import flixel.FlxCamera;
class GameClass extends FlxGame
steverichey / Splat.hx
Last active Aug 29, 2015
Dissolving pixels per frame.
View Splat.hx
import flash.display.BitmapData;
import flash.geom.Point;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.util.FlxColor;
import flixel.util.FlxColorUtil;
import flixel.util.FlxRandom;
import openfl.Assets;
steverichey / RenderTilemapToSprite
Last active Aug 29, 2015
Drawing a FlxTilemap to a FlxSprite
View RenderTilemapToSprite
import flixel.FlxCamera;
import flixel.FlxSprite;
import flixel.tile.FlxTilemap;
class Util
static public function renderTileMapToSprite(Tiles:FlxTilemap, Sprite:FlxSprite):Void
var tempCam:FlxCamera = new FlxCamera(0, 0,,;
Sprite.makeGraphic(,, 0);
steverichey / Don't Move Preloader
Created Jun 12, 2014
The preloader for Don't Move, uses HaxeFlixel 4.0.0-dev
View Don't Move Preloader
package states;
import flash.Lib;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flixel.system.FlxBasePreloader;
class Preloader extends FlxBasePreloader
private var _progressBar:Bitmap;
steverichey / Localization Strings
Created Aug 7, 2014
Localization strings for Don't Move
View Localization Strings
Here's a list of the strings in the game (SPOILERS kinda):
A game by
Powered by
Press left or right to start
Release left and right
to start
to erase
Touch left or right side to start
Release both sides
View Localization Strings
Here's a list of the strings in the game (SPOILERS kinda):
A game by: Et spil af
Powered by: Kører på
Press left or right to start: Tryk venstre eller højre for at starte
Release left and right: Slip venstre og højre
to start: for at starte
to erase: for at slette
Touch left or right side to start: Tryk venstre eller højre side for at starte
Release both sides: Slip begge sider
steverichey /
Last active May 15, 2018
Generates a random string of a specified length.
set -e
if [ "$#" -lt 0 ]; then
echo "Usage: pw 16 [lim]"
exit 1
if [ "$#" -gt 2 ]; then
You can’t perform that action at this time.