Skip to content

Commit

Permalink
Fix room preview params (#1793)
Browse files Browse the repository at this point in the history
Co-authored-by: Tiffany Chong <sciffany@gmail.com>
  • Loading branch information
gok99 and sciffany committed Jun 16, 2021
1 parent 7eb552a commit 29e8388
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/features/game/scenes/roomPreview/RoomPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,15 @@ export default class RoomPreview extends Phaser.Scene {

public createContext() {
this.context = createContext(4, [], 'playground', 'default', {
scene: this,
phaser: Phaser,
preloadImageMap: this.preloadImageMap,
preloadSoundMap: this.preloadSoundMap,
preloadSpritesheetMap: this.preloadSpritesheetMap,
remotePath: Constants.assetsFolder,
screenSize: screenSize,
createAward: (x: number, y: number, key: ItemId) => this.createAward(x, y, key)
game: {
scene: this,
preloadImageMap: this.preloadImageMap,
preloadSoundMap: this.preloadSoundMap,
preloadSpritesheetMap: this.preloadSpritesheetMap,
remotePath: Constants.assetsFolder,
screenSize: screenSize,
createAward: (x: number, y: number, key: ItemId) => this.createAward(x, y, key)
}
});
}

Expand Down

0 comments on commit 29e8388

Please sign in to comment.