Skip to content

Commit

Permalink
level building
Browse files Browse the repository at this point in the history
  • Loading branch information
JayArrrgh committed Apr 1, 2012
1 parent f355523 commit 41fc596
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bird.as
Expand Up @@ -20,7 +20,7 @@ package
[Embed (source = "../assets/audio/Caw_3.mp3")] private var caw3:Class;

// a floating-point multiplier for the bird's flying speed.
public static const FLY_SPEED:Number = 1.0;
public static const FLY_SPEED:Number = 6.0;
public var crashed:Boolean = false;
public var flyToTheRight:Boolean;

Expand Down
2 changes: 1 addition & 1 deletion src/Player.as
Expand Up @@ -10,7 +10,7 @@ package
public static const CLIMB_SPEED:Number = 3.0; // a floating-point multiplier for the player's speed
public static const FALL_SPEED:Number = 6.0;
public static const START_ALTITUDE:int = 700;
public static const START_X:int = 240;
public static const START_X:int = 200;
public var hasFailed:Boolean = false;

public function Player(x:int, y:int)
Expand Down
20 changes: 20 additions & 0 deletions src/WorldCity.as
Expand Up @@ -64,8 +64,28 @@ package
timedEvents.push(new TimedEvent(2.5, new Pot(ROPE_LEFT, FROM_ABOVE)));
break;
case 8:
positionEvents.push(new PositionEvent(500, new Pot(ROPE_LEFT, FROM_ABOVE)));
positionEvents.push(new PositionEvent(300, new Pot(ROPE_LEFT, FROM_ABOVE)));
break;
case 9:
positionEvents.push(new PositionEvent(500, new Pot(ROPE_RIGHT, FROM_ABOVE)));
positionEvents.push(new PositionEvent(300, new Pot(ROPE_RIGHT, FROM_ABOVE)));
positionEvents.push(new PositionEvent(200, new Pot(ROPE_LEFT, FROM_ABOVE)));
break;
case 10:
timedEvents.push(new TimedEvent(0.5, new Pot(ROPE_RIGHT, FROM_ABOVE)));
positionEvents.push(new PositionEvent(500, new Bird(FROM_LEFT, 300)));
break;
case 11:
positionEvents.push(new PositionEvent(700, new Bird(FROM_RIGHT, 600)));
positionEvents.push(new PositionEvent(500, new Bird(FROM_LEFT, 400)));
positionEvents.push(new PositionEvent(300, new Bird(FROM_RIGHT, 200)));
break;
case 12:
positionEvents.push(new PositionEvent(700, new Bird(FROM_LEFT, 650)));
positionEvents.push(new PositionEvent(575, new Bird(FROM_LEFT, 525)));
positionEvents.push(new PositionEvent(450, new Bird(FROM_LEFT, 400)));
positionEvents.push(new PositionEvent(325, new Bird(FROM_LEFT, 275)));
break;
default:
break;
Expand Down

0 comments on commit 41fc596

Please sign in to comment.