Permalink
Browse files

map progression. fix vig. x 0. Power flashes to white. kill tree sprite.

  • Loading branch information...
1 parent b73d14b commit 1de08e5ecf5fa96521ddcf6d48f21cf38da0e710 Colin Farrell committed Jan 29, 2012
Showing with 29 additions and 11 deletions.
  1. +24 −7 src/PlayState.as
  2. +5 −4 src/Player.as
View
@@ -303,16 +303,33 @@ package
gradientA = new FlxSprite(0,0, BgGradientA);
gradientA.solid = false;
gradientA.moves = false;
- gradientA.alpha = 1;
- gradientA.blend = "multiply";
+ // gradientA.alpha = 1;
+ // gradientA.blend = "multiply";
add(gradientA);
- //map=new MapMainMap();
-
- map=new MapDavidMap();
+
+ map = new MapLevelZero();
+ levels.push(map);
+
+ map = new MapLevelOne();
+ levels.push(map);
+
+ map = new MapLevelTwo();
+ levels.push(map);
+
+ map = new MapLevelSeven();
+ levels.push(map);
+
+ map = new MapLevelThree();
+ levels.push(map);
+
+ map = new MapLevelFour();
+ levels.push(map);
+
+ map = new MapLevelFive();
levels.push(map);
- map=new TutorialOne();
+ map = new MapLevelSix();
levels.push(map);
@@ -669,7 +686,7 @@ package
sacrificeLeft = ""+player.platformsLeft;
}
- sacrificeText.text = "Sacrifices: " + sacrificeLeft;
+ sacrificeText.text = "x " + sacrificeLeft;
super.draw();
View
@@ -300,7 +300,7 @@ package
createTree();
FlxG.camera.shake(0.005,0.35);
- FlxG.camera.flash(0x11ff11a2,0.35);
+ FlxG.camera.flash(0xFFFFFFFF,0.35);
FlxG.play(createTreeSound);
@@ -312,7 +312,7 @@ package
explode(3);
FlxG.camera.shake(0.005,0.35);
- FlxG.camera.flash(0xffd8eba2,0.35);
+ FlxG.camera.flash(0xFFFFFFFF,0.35);
FlxG.play(explosionSound);
@@ -326,7 +326,7 @@ package
createTiles();
FlxG.camera.shake(0.005,0.35);
- FlxG.camera.flash(0xffd8eba2, 0.35);
+ FlxG.camera.flash(0xFFFFFFFF, 0.35);
FlxG.play(createPlatformSound);
@@ -463,7 +463,7 @@ package
FlxG.camera.shake(0.001,0.35);
- FlxG.camera.flash(0xff0000a2,0.35);
+ //FlxG.camera.flash(0xffffffa2,0.35);
}
@@ -544,6 +544,7 @@ package
x = x + 32;
treeClimbSprite.visible=false;
this.visible=true;
+ treeClimbSprite.kill();
FlxG.state.remove(treeClimbSprite);
}

0 comments on commit 1de08e5

Please sign in to comment.