Skip to content

Commit

Permalink
Cleaned main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Eemeli Kelokorpi committed Feb 26, 2014
1 parent 68c32e9 commit 4c35323
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Binary file removed media/[email protected]
Binary file not shown.
13 changes: 0 additions & 13 deletions src/game/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,10 @@ game.module(
)
.body(function() {

game.addAsset('media/logo.png');

SceneGame = game.Scene.extend({
backgroundColor: 0x808080,

init: function() {
var logo = new game.Sprite(game.system.width / 2, game.system.height / 2, 'media/logo.png', {
anchor: {x: 0.5, y: 0.5}
});
this.stage.addChild(logo);

var tween = new game.Tween(logo.scale)
.to({x: 1.05, y: 1.05}, 2000)
.easing(game.Tween.Easing.Quadratic.InOut)
.repeat()
.yoyo()
.start();
}
});

Expand Down

0 comments on commit 4c35323

Please sign in to comment.