Skip to content

Commit

Permalink
Step 6.4: Hook 'Ready' layer to 'Play' screen
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Aug 29, 2018
1 parent 771db60 commit 6bfdde8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/scripts/game/screens/play/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Game.Screens.Play = class Play extends Engine.Screen {
}
}

// The ready screen will be the initial screen
initialize(game, snakes) {
this.appendLayer(Game.Screens.Play.Ready, snakes);
}

onKeyDown() {
// Once escape is pressed, return to main menu screen
if (this.keyStates.get(27)) {
Expand Down

0 comments on commit 6bfdde8

Please sign in to comment.