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';
import TestScene from './scenes/test';
class Game {
constructo() {
constructor(width, height) {
this.config = {
type: Phaser.AUTO,
width: 800,
height: 600,
width: width,
height: height,
scene: TestScene
};
......
import WidgetBackend from './backends/widget';
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