Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
izure committed Jun 29, 2021
1 parent b05e521 commit 06c127b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,12 @@ export class PreviewScene extends Scene {

const animationKey: string|undefined = paletteType === 2 ? key : undefined

this.map
.setWalltile(x, y, key, undefined, animationKey)
.setScale(scale)
.setSensor(isSensor)
const wall = this.map.setWalltile(x, y, key, undefined, animationKey)

this.optimization.add(wall)

wall.setScale(scale).setSensor(isSensor)
wall.setToSleep()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function(width: number, height: number, scene: (Phaser.Scene|type
physics: {
default: 'matter',
matter: {
enableSleeping: true,
debug: true,
gravity: {
x: 0,
Expand Down

0 comments on commit 06c127b

Please sign in to comment.