Skip to content

Commit

Permalink
Changes due to refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
StrykerKKD committed Apr 24, 2015
1 parent 6d97a5f commit cba4564
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/gravity/play.dart
Expand Up @@ -21,8 +21,8 @@ class Play extends State {
..acceleration = 50
..minSpeed = 0
..maxSpeed = 400
..killOutOfBounds = true
..enableGravity = true
..canKillOutOfBounds = true
..isGravityEnabled = true
..centerPivot();

}
Expand Down
2 changes: 1 addition & 1 deletion example/movementsystem/play.dart
Expand Up @@ -18,7 +18,7 @@ class Play extends State {
..acceleration = 50
..minSpeed = 0
..maxSpeed = 300
..collideWorldBounds = true
..canCollideWorldBounds = true
..centerPivot();

game.keyboard.onKeyDownAndKeyUpHandler(
Expand Down
8 changes: 4 additions & 4 deletions example/spaceinvader/states/play.dart
Expand Up @@ -30,14 +30,14 @@ class Play extends State {
..x = game.world.width ~/ 2
..y = game.world.height - 200
..speedX = 300
..collideWorldBounds = true;
..canCollideWorldBounds = true;

bullets = new Group<Sprite>();
for (int i = 0; i < 5; i++) {
bullets.add(game.add.sprite('laserBlue01', addToWorld: false)
..speedY = 500
..move('up')
..killOutOfBounds = true);
..canKillOutOfBounds = true);

}

Expand Down Expand Up @@ -116,13 +116,13 @@ class Play extends State {
killState("end");
}

game.physics.collison(ufos, bullets, (Ufo ufo, Sprite bullet) {
game.physics.collision(ufos, bullets, (Ufo ufo, Sprite bullet) {
ufo.alive = false;
bullet.removeFromWorld();
scoreText.text = "Score: ${score+=10}";
});

game.physics.collison(ufos, player, (Ufo ufo, Sprite player) {
game.physics.collision(ufos, player, (Ufo ufo, Sprite player) {
bulletTimer.cancel();
killState("end");
});
Expand Down

0 comments on commit cba4564

Please sign in to comment.