|
|
@ -56,14 +56,13 @@ export default class Rect extends Phaser.Scene { |
|
|
|
|
|
|
|
|
// physics group which manages all tiles in game
|
|
|
// physics group which manages all tiles in game
|
|
|
this.tileGroup = this.physics.add.group(); |
|
|
this.tileGroup = this.physics.add.group(); |
|
|
const shape = this.add.graphics(); |
|
|
|
|
|
shape.fillStyle = "#000"; |
|
|
|
|
|
|
|
|
const shape = this.make.graphics(); |
|
|
shape.beginPath(); |
|
|
shape.beginPath(); |
|
|
shape.moveTo(0, tileSize * 8 + tileSpace * 7 + offsetTop); |
|
|
|
|
|
|
|
|
shape.moveTo(0, offsetTop); |
|
|
|
|
|
shape.lineTo(1080, offsetTop); |
|
|
shape.lineTo(1080, tileSize * 8 + tileSpace * 7 + offsetTop); |
|
|
shape.lineTo(1080, tileSize * 8 + tileSpace * 7 + offsetTop); |
|
|
shape.lineTo(1080, 1080); |
|
|
|
|
|
shape.lineTo(0, 1080); |
|
|
|
|
|
shape.lineTo(0, tileSize * 8 + tileSpace * 7 + offsetTop); |
|
|
shape.lineTo(0, tileSize * 8 + tileSpace * 7 + offsetTop); |
|
|
|
|
|
shape.lineTo(0, offsetTop); |
|
|
shape.fillPath(); |
|
|
shape.fillPath(); |
|
|
|
|
|
|
|
|
const mask = shape.createGeometryMask(); |
|
|
const mask = shape.createGeometryMask(); |
|
|
|