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:
I hereby claim:
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} | |
] | |
} |
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); |
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; |
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'); |