Skip to content

Instantly share code, notes, and snippets.

@danielbenmergui
danielbenmergui / readme.txt
Created December 10, 2018 02:00
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@danielbenmergui
danielbenmergui / readme.txt
Created December 10, 2018 01:59
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@danielbenmergui
danielbenmergui / readme.txt
Created December 10, 2018 01:59
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
ESDF_Keyboard_Setting_On: ESDF Keyboard ON
ESDF_Keyboard_Setting_Off: ESDF Keyboard OFF
Achievement_Underdragon_No_Zapping: No Zapping!
Menu_Numeric_XP_On: Numeric XP ON
Menu_Numeric_XP_Off: Numeric XP OFF
Dungeon_Rescue: Dungeon Rescue
Achievement_Rescued_Granma_Fat: Overweight Rescue
Achievement_Finished_Underworld_Zombie: Zombie Ending
Achievement_Finished_Underworld_Robot: Robot Ending
LEVEL_DESC_SPEEDRUN: Cemetery #0 of #1
Short_Intro: Fidel is a puzzle-crawler about finding the best path through monsters, treasure and magic. Each match is just a few minutes long, but there are many surprises and tricks to learn each time. Also, you are a dog.
Long_Intro_1: Fidel is a puzzle-crawler where you trace a path through monsters, treasure and magic.
Long_Intro_2:Each match is just a few minutes long, but there are many secrets to the Underworld!
Long_Intro_3:No grinding, no filler, loads fast, quick to play.
Long_Intro_4:Don't forget to bark!
# ANY LINES STARTING WITH "#" ARE COMMENTS AND DO NOT NEED TRANSLATION!
# MENU STRINGS
Menu_Restart: Restart
Menu_Language: Language: English
@danielbenmergui
danielbenmergui / gist:f80c0bcfc5561ea30d1e
Created March 16, 2015 20:01
Pseudorandom Numbers Class
package gamelib ;
class RandomGenerator
{
public var seed:String;
private var numSeed:Float;
private var curSeed:Float;
public function new(seed:String)
{
@danielbenmergui
danielbenmergui / gist:35f466dbb346c2b98e6b
Last active August 29, 2015 14:08
Code I used to load images into bitmaps very quickly
private function load_frames(id:String, scalex:Float, scaley:Float = -1, fx:String = "default"):Array<Frame>
{
if (scaley == -1) scaley = scalex;
scalex = Math.floor(scalex * 1000.0) / 1000.0;
scaley = Math.floor(scaley * 1000.0) / 1000.0;
// scan local cache first
var file_name = 'img_${id}_${scalex}_${scaley}_v1.anim';
var file = cache_dir.resolvePath(file_name);
if (file.exists)
{
@danielbenmergui
danielbenmergui / Set.hx
Created December 17, 2013 01:46
This class implements a generic Set in Haxe. It is implemented with an array because it was important for me that the insertion order was preserved, so it is clearly not designed to do fast search if there are lots of elements. Code is minimal so it's self-explanatory. It does not do anything fancy but supports several convenience functions.
package gamelib;
class Set<T>
{
private var values:Array<T>;
public function new(initial_values:Array<T> = null)
{
values = [];
if(initial_values != null)