Skip to content

Commit

Permalink
Merge branch 'master' of github.com:source-academy/cadet-frontend int…
Browse files Browse the repository at this point in the history
…o minor-fixes
  • Loading branch information
samuelfangjw committed Jun 16, 2021
2 parents 9899ce9 + 29e8388 commit 3d191b8
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 3d191b8

Please sign in to comment.