diff --git a/src/App.jsx b/src/App.jsx index 2bb7363..faa627c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,6 +1,6 @@ import { useRef, useState } from 'react'; -import Phaser from 'phaser'; +import * as Phaser from 'phaser'; import { PhaserGame } from './PhaserGame'; function App () diff --git a/src/game/EventBus.js b/src/game/EventBus.js index 46279c3..3d34ec5 100644 --- a/src/game/EventBus.js +++ b/src/game/EventBus.js @@ -1,4 +1,4 @@ -import Phaser from 'phaser'; +import * as Phaser from 'phaser'; // Used to emit events between components, HTML and Phaser scenes -export const EventBus = new Phaser.Events.EventEmitter(); \ No newline at end of file +export const EventBus = new Phaser.Events.EventEmitter(); diff --git a/src/game/main.js b/src/game/main.js index 4e88389..c0557f6 100644 --- a/src/game/main.js +++ b/src/game/main.js @@ -2,7 +2,7 @@ import { Boot } from './scenes/Boot'; import { Game } from './scenes/Game'; import { GameOver } from './scenes/GameOver'; import { MainMenu } from './scenes/MainMenu'; -import Phaser from 'phaser'; +import * as Phaser from 'phaser'; import { Preloader } from './scenes/Preloader'; // Find out more information about the Game Config at: