Skip to content

Commit f96cadd

Browse files
committed
add the debug panel to the isometric example
1 parent 1f26fe8 commit f96cadd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/examples/src/examples/isometricRpg/createGame.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { loader, pool, state, video } from "melonjs";
1+
import { DebugPanelPlugin } from "@melonjs/debug-plugin";
2+
import { loader, plugin, pool, state, video } from "melonjs";
23
import { PlayerEntity } from "./PlayerEntity.js";
34
import { PlayScreen } from "./play.js";
45
import { resources } from "./resources.js";
@@ -9,6 +10,9 @@ export const createGame = () => {
910
scale: "auto",
1011
});
1112

13+
// register the debug plugin
14+
plugin.register(DebugPanelPlugin, "debugPanel");
15+
1216
// set all ressources to be loaded
1317
loader.preload(resources, () => {
1418
// set the "Play/Ingame" Screen Object

0 commit comments

Comments
 (0)