Skip to content

Commit

Permalink
Merge pull request #179 from DRincs-Productions/163-give-the-possibil…
Browse files Browse the repository at this point in the history
…ity-to-use-pixijs-devtools-and-document

devtools
  • Loading branch information
BlackRam-oss authored Aug 12, 2024
2 parents 0bd190b + 6353efd commit 33e2742
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
19 changes: 15 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
"vitest": "^2.0.4"
},
"dependencies": {
"@pixi/devtools": "^2.0.1",
"crypto-js": "^4.2.0",
"deep-diff": "^1.0.2",
"pixi.js": "^8.2.5"
"pixi.js": "^8.3.2"
},
"keywords": [
"game",
Expand Down
3 changes: 3 additions & 0 deletions src/managers/WindowManager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { initDevtools } from '@pixi/devtools';
import sha1 from 'crypto-js/sha1';
import { Application, ApplicationOptions, Container, Ticker } from "pixi.js";
import CanvasBase from "../classes/canvas/CanvasBase";
Expand Down Expand Up @@ -81,6 +82,8 @@ export default class GameWindowManager {
height: height,
...options
}).then(() => {
initDevtools({ app: GameWindowManager._app });

GameWindowManager._isInitialized = true
// Manager.app.ticker.add(Manager.update)
this.addCanvasIntoHTMLElement(element)
Expand Down

0 comments on commit 33e2742

Please sign in to comment.