Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRef, useState } from 'react';

import Phaser from 'phaser';
import * as Phaser from 'phaser';
import { PhaserGame } from './PhaserGame';

function App ()
Expand Down
4 changes: 2 additions & 2 deletions src/game/EventBus.js
Original file line number Diff line number Diff line change
@@ -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();
export const EventBus = new Phaser.Events.EventEmitter();
2 changes: 1 addition & 1 deletion src/game/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down