started skeleton and zombie, added GUI and menu system
Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ import Preload from "./scenes/Preload";
|
||||
import Game from "./scenes/Game";
|
||||
import ControlsSettings from "./scenes/ControlsSettings";
|
||||
import RexUIPlugin from 'phaser3-rex-plugins/templates/ui/ui-plugin.js';
|
||||
import MainMenu from "./scenes/MainMenu";
|
||||
import GUI from "./scenes/GUI";
|
||||
|
||||
const ratio = 16 / 9; // any ratio you want, 16/9 landscape or 9/16 portrait
|
||||
const DEFAULT_HEIGHT = 1080 / 4; // any height you want
|
||||
@@ -24,7 +24,7 @@ const config = {
|
||||
height: DEFAULT_HEIGHT,
|
||||
width: DEFAULT_WIDTH,
|
||||
parent: "phaser-example",
|
||||
scene: [Preload, MainMenu, Menu, ControlsSettings, Game],
|
||||
scene: [Preload, GUI, Menu, ControlsSettings, Game],
|
||||
pixelArt: true,
|
||||
antialias: false,
|
||||
autoFocus: true,
|
||||
|
||||
Reference in New Issue
Block a user