started skeleton and zombie, added GUI and menu system

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-16 04:42:39 +02:00
parent e3b9eff67d
commit f1d6c7d69f
15 changed files with 1636 additions and 80 deletions
+2 -2
View File
@@ -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,