JavaScript Break and Continue
Switching from Pong to Breakout introduces a little more complexity in the game state, with scores, highscores, lives, levels and such it became worthwhile to invest a little time in some better coding patterns. The HTML document structure is quite simple, as the game renders on the element. The only other part that we need […]