Skip to content

Commit

Permalink
Step 6.6: Hook 'snake' layer to 'ready' layer
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Aug 29, 2018
1 parent ef26b29 commit 40071c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/scripts/game/screens/play/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ Game.Screens.Play.Ready = class Ready extends Engine.Layer {
// This will start playing the animation
this.ready = true;
this.readyAnim.play();

// Start the game in the background
this.screen.prependLayer(Game.Screens.Play.Snake, this.snakes);
}
};

0 comments on commit 40071c1

Please sign in to comment.