Skip to content

Instantly share code, notes, and snippets.

View damrem's full-sized avatar

Damien Remars damrem

View GitHub Profile
@damrem
damrem / keybase.md
Created October 10, 2019 13:24
keybase.md

Keybase proof

I hereby claim:

  • I am damrem on github.
  • I am damrem (https://keybase.io/damrem) on keybase.
  • I have a public key ASC-drbITw5RIhroLePIcvL7s1nVGvsTofH0MTqCyyDl4wo

To claim this, I am signing this object:

{
"list":[
{"id":1,"name":"Item1","value":100},
{"id":2,"name":"Item2","value":200},
{"id":3,"name":"Item3","value":10},
{"id":4,"name":"Item4","value":130},
{"id":5,"name":"Item5","value":1400},
{"id":6,"name":"Item6","value":170}
]
}
@damrem
damrem / openfl4-tilemap-sample.hx
Created September 15, 2016 12:33
openfl4 Tilemap usage
var tilesheet = Assets.getBitmapData("img/tilesheet.png");
var tileset = new Tileset(tilesheet);
var PATH = tileset.addRect(new Rectangle(0, 0, 32, 32));
var WALL = tileset.addRect(new Rectangle(0, 32, 32, 32));
var HERO = tileset.addRect(new Rectangle(0, 64, 32, 32));
// TileMap is a DisplayObject so it can be added to the display list
// we give it the same size as the stage so that we can use it as a layer
var tilemap = new Tilemap(Lib.current.stage.stageWidth, Lib.current.stage.stageHeight, tileset);
addChild(tilemap);
@damrem
damrem / ld-voting-results.md
Last active June 2, 2016 11:30 — forked from mrspeaker/ld-voting-results.md
Results of Ludum Dare round-by-round voting.

LD voting

LD28

LD28 Theme Voting – Round 5 of 5

[Stay tuned! Oh, the excitement!]

LD28 Theme Voting – Round 1 of 5

@damrem
damrem / palette
Last active March 21, 2016 23:38
generates a palette with nearly 256 colors
class Test {
static function main() {
var canvas=new flash.display.Sprite();
flash.Lib.current.stage.addChild(canvas);
var gfx=canvas.graphics;
var x;
var y;
var c:Int;
@damrem
damrem / server.js
Last active August 29, 2015 14:06
divshot/divshot-cli/lib/commands/server.js for Windows (fixes spawn ENOENT error)
var path = require('path');
var spawn = require('child_process').spawn;
module.exports = function (cli) {
var command = cli.command('server <optional directory>', 's <optional directory>');
command.description('start server for local development');
command.handler(function (customDir, done) {
var cmd = path.resolve(__dirname, '../../node_modules/.bin/superstatic');