077 : Array of platforms
Balthazar:
Just like we did with the monsters, we need to add an array of platforms. Initially, the array will only have a single platform.
function init_game() {
...
// Game state.
_game.game_over = false;
_game.game_win = false;
_game.platform = create_platform(0, 360, _game.width, 40);
_game.platforms = [];
_game.platforms.push(create_platform(0, 360, _game.width, 40));
_game.monsters = [];
...
}
GOTO 075