Skip to content
Snippets Groups Projects
Verified Commit 88ebc23c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix up constructor

parent ce8f55d2
No related branches found
No related tags found
No related merge requests found
Pipeline #7275 passed
...@@ -2,11 +2,11 @@ import Phaser from 'phaser'; ...@@ -2,11 +2,11 @@ import Phaser from 'phaser';
import TestScene from './scenes/test'; import TestScene from './scenes/test';
class Game { class Game {
constructo() { constructor(width, height) {
this.config = { this.config = {
type: Phaser.AUTO, type: Phaser.AUTO,
width: 800, width: width,
height: 600, height: height,
scene: TestScene scene: TestScene
}; };
......
import WidgetBackend from './backends/widget'; import WidgetBackend from './backends/widget';
import Game from './frontend/game'; import Game from './frontend/game';
let game = new Game(); const width = 800;
const height = 600;
let game = new Game(width, height);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment