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

Working with Spritesheets

Run
var grant = null; var game = new tine.Game(null, { preload: function() { game.load.image('bg', 'assets/platform.png'); game.load.spritesheet('grant', 'assets/grant.png', { "framerate": 30, "frames": {"regX": 82, "height": 292, "count": 64, "regY": 0, "width": 165}, "animations": { "run": [0, 25, "run", 1.5], "jump": [26, 63, "jump"] } }); }, create: function() { var bg = game.create.bitmap('bg'); game.stage.addChild(bg); grant = game.create.sprite('grant', 'run', {regX:'right', regY:'bottom', y:556}); game.stage.addChild(grant); }, update: function() { grant.x += 400*game.time.fdelta; if (grant.x > 1360) { grant.x = 0; } } });