-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbackup.js
42 lines (29 loc) · 1.19 KB
/
backup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// gameState.fowCanvas = this.textures.createCanvas('fow', gameWidth, gameHeight);
// const context = gameState.fowCanvas.context;
// context.fillStyle = clrFoW;
// context.fillRect(0,0,gameWidth,gameHeight);
// gameState.fowCanvas.context.globalCompositeOperation = 'destination-out';
// context.fillStyle = '#FFFFFF';
// context.fillRect(0,0,gameState.player.x*1.5,gameHeight);
// context.fillRect(0,gameHeight/4,gameState.player.x*2,gameHeight/2);
// this.add.image(0, 0, 'fow').setOrigin(0);
// gameState.fowCanvas.refresh();
// drawVisionPlayer(gameState);
// console.log(gameState.fowCanvas);
// const spotlightCaravan = this.make.sprite({
// x: 0,
// y: 0,
// key: 'mask',
// add: false
// });
// spotlightCaravan.displayWidth = gameState.visionCaravan;
// spotlightCaravan.displayHeight = gameState.visionCaravan;
// let maskGroup = this.add.group()
// maskGroup.add(spotlight)
// maskGroup.add(spotlightCaravan)
// console.log(maskGroup)
// gameState.Burned = this.add.rectangle(0,0,gameState.WoD.x,gameHeight,clrWoD).setOrigin(0,0);
// emitter0.forEach(function(particle) {
// particle.tint=0xFF0000;
// }
// )