This site works A LOT better with JavaScript enabled!
This is the beta version of this site! Some things may not be working.

Perspective

Run
var map = null; var game = new tine.Game(null, { preload: function() { game.load.image('_', 'assets/tmx/perspective_walls.png'); game.load.image('_', 'assets/tmx/tmw_desert_spacing.png'); game.load.json('map', 'assets/tmx/perspective_desert.json'); }, create: function() { // Use creatine.Display to disable anti-aliasing game.display.setSmoothingEnabled(false); // Map map = game.create.tilemap('map', {y:4}); map.cache(0, 0, map.width*map.tileWidth, map.height*map.tileHeight); game.stage.addChild(map); }, update: function() { // Move the map when key is pressed if (game.keyboard.isDown(tine.keys.LEFT) || game.keyboard.isDown(tine.keys.A)) { map.x += 350*game.time.fdelta; } if (game.keyboard.isDown(tine.keys.RIGHT) || game.keyboard.isDown(tine.keys.D)) { map.x -= 350*game.time.fdelta; } map.x = creatine.clip(map.x, 1024-map.width*map.tileWidth, 0) } })