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
/** | |
* Prevents displaying NaN to the user. Defaults to 0. | |
*/ | |
Ember.Handlebars.helper("safefloat", function(value, options) { | |
if (Ember.isEmpty(value) || isNaN(value)) { | |
value = 0; | |
} | |
return new Ember.Handlebars.SafeString(value); | |
}); |
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
<!-- Camera --> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-feature android:name="android.hardware.camera" /> | |
<uses-feature android:name="android.hardware.camera.autofocus" /> | |
<!-- GPS --> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> |
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
#!/bin/sh | |
# | |
# Iconizer shell script by Steve Richey ([email protected]) | |
# | |
# This is a simple tool to generate all necessary app icon sizes and the JSON file for an *EXISTING* Xcode project from one file. | |
# To use: specify the path to your vector graphic (PDF format) and the path to your Xcode folder containing Images.xcassets | |
# Example: sh iconizer.sh MyVectorGraphic.pdf MyXcodeProject | |
# | |
# Requires ImageMagick: http://www.imagemagick.org/ |
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
#!/bin/sh | |
set -e | |
if [ "$#" -lt 0 ]; then | |
echo "Usage: pw 16 [lim]" | |
exit 1 | |
fi | |
if [ "$#" -gt 2 ]; then |
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
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 |
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
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 |
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 states; | |
import flash.Lib; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flixel.system.FlxBasePreloader; | |
class Preloader extends FlxBasePreloader | |
{ | |
private var _progressBar:Bitmap; |
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
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, Std.int(Tiles.width), Std.int(Tiles.height)); | |
Sprite.makeGraphic(Std.int(Tiles.width), Std.int(Tiles.height), 0); |
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 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; |
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 flash.events.Event; | |
import flash.Lib; | |
import flixel.FlxG; | |
import flixel.FlxGame; | |
import flixel.FlxCamera; | |
class GameClass extends FlxGame | |
{ |