17 lines
353 B
JavaScript
17 lines
353 B
JavaScript
/////////////////////////////
|
|
// Main game
|
|
|
|
const CONTENT_ID = "Typing Practice";
|
|
|
|
let game = new Phaser.Game(
|
|
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
|
|
Phaser.CANVAS, CONTENT_ID,
|
|
this, false, false
|
|
);
|
|
|
|
game.state.add('Loading', Loading);
|
|
game.state.start('Loading');
|
|
|
|
game.state.add('TypingPractice', TypingPractice);
|
|
// game.state.add('Menu', Menu);
|