This commit is contained in:
Webeled
2013-10-07 20:56:44 +01:00
parent 664c512a99
commit 77b553ac2a
23 changed files with 47 additions and 96 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
game.add.tileSprite(0, 0, 2000, 2000, 'background');
game.world.setSize(1400,1400);
game.world.setBounds(1400,1400);
for(var i=0,nb=10;i<nb;i++){
+7 -13
View File
@@ -36,7 +36,7 @@
function create() {
//make the world larger than the actual canvas
game.world.setSize(1400,1400);
game.world.setBounds(1400,1400);
for(var i=0,nb=10;i<nb;i++){
@@ -46,18 +46,12 @@
// background images
game.add.sprite(0, 0, 'sky')
.scrollFactor.setTo(0, 0);
game.add.sprite(0, 360, 'ground')
.scrollFactor.setTo(0.5, 0.1);
game.add.sprite(0, 400, 'river')
.scrollFactor.setTo(1.3, 0.16);
game.add.sprite(200, 120, 'cloud0')
.scrollFactor.setTo(0.3, 0.1);
game.add.sprite(-60, 120, 'cloud1')
.scrollFactor.setTo(0.5, 0.1);
game.add.sprite(900, 170, 'cloud2')
.scrollFactor.setTo(0.7, 0.1);
game.add.sprite(0, 0, 'sky');
game.add.sprite(0, 360, 'ground');
game.add.sprite(0, 400, 'river');
game.add.sprite(200, 120, 'cloud0');
game.add.sprite(-60, 120, 'cloud1');
game.add.sprite(900, 170, 'cloud2');
// ufo sprite
+1 -3
View File
@@ -18,12 +18,11 @@
game.stage.backgroundColor = '#2d2d2d';
// Make our game world 2000x2000 pixels in size (the default is to match the game size)
game.world.setSize(2000, 2000);
game.world.setBounds(2000, 2000);
for (var i = 0; i < 50; i++)
{
var s = game.add.sprite(game.world.randomX, game.world.randomY, 'mushroom');
s.scrollFactor.setTo(0.5, 0.5);
}
for (var i = 0; i < 50; i++)
@@ -34,7 +33,6 @@
for (var i = 0; i < 50; i++)
{
var s = game.add.sprite(game.world.randomX, game.world.randomY, 'mushroom');
s.scrollFactor.setTo(2, 2);
}
}
+1 -1
View File
@@ -19,7 +19,7 @@
//setting the size of the game world larger than the tilemap's size
game.world.setSize(2000,2000);
game.world.setBounds(2000,2000);
game.stage.backgroundColor = '#255d3b';
+1 -1
View File
@@ -12,7 +12,7 @@
function preload() {
game.world.setSize(1920, 1200);
game.world.setBounds(1920, 1200);
game.load.image('backdrop', 'assets/pics/remember-me.jpg');
game.load.image('card', 'assets/sprites/mana_card.png');