Skip to content

Commit 740f725

Browse files
committed
3.0.1
1 parent f1e44ac commit 740f725

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lux-viewer-2021",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "",
55
"author": "Lux AI challenge",
66
"main": "index.js",

src/components/Game.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ export const GameComponent = () => {
182182
height: main.mapHeight,
183183
}
184184
);
185-
[main.islandbaseImage, main.islandbaseNightImage].forEach((tileImage) => {
186-
tileImage.setX(ps[0]);
187-
let f = 32.3;
188-
if (main.mapWidth <= 16) f = 31.7;
189-
tileImage.setY(ps[1] + main.overallScale * main.mapWidth * f);
190-
tileImage.setScale(
191-
main.defaultScales.islandBase * main.overallScale * main.mapWidth
192-
);
193-
});
185+
// [main.islandbaseImage, main.islandbaseNightImage].forEach((tileImage) => {
186+
// tileImage.setX(ps[0]);
187+
// let f = 32.3;
188+
// if (main.mapWidth <= 16) f = 31.7;
189+
// tileImage.setY(ps[1] + main.overallScale * main.mapWidth * f);
190+
// tileImage.setScale(
191+
// main.defaultScales.islandBase * main.overallScale * main.mapWidth
192+
// );
193+
// });
194194
}
195195
}, [main, visualScale]);
196196

src/components/configs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "3.0.0"
2+
"version": "3.0.1"
33
}

src/scenes/MainScene.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ class MainScene extends Phaser.Scene {
498498
}
499499

500500
// add island base
501-
this.islandbaseImage = this.add.image(0, 0, 'islandbase').setDepth(9999999);
502-
this.islandbaseNightImage = this.add
503-
.image(0, 0, 'islandbase-night')
504-
.setDepth(9999999)
505-
.setAlpha(0);
501+
// this.islandbaseImage = this.add.image(0, 0, 'islandbase').setDepth(9999999);
502+
// this.islandbaseNightImage = this.add
503+
// .image(0, 0, 'islandbase-night')
504+
// .setDepth(9999999)
505+
// .setAlpha(0);
506506

507507
// add handler for clicking tiles
508508
this.input.on(
@@ -802,9 +802,9 @@ class MainScene extends Phaser.Scene {
802802
getNightTransitionTween(value.overlay, this.speed, endAlpha)
803803
);
804804
});
805-
this.tweens.add(
806-
getNightTransitionTween(this.islandbaseNightImage, this.speed, endAlpha)
807-
);
805+
// this.tweens.add(
806+
// getNightTransitionTween(this.islandbaseNightImage, this.speed, endAlpha)
807+
// );
808808

809809
// render roads
810810
f.roadLevels.forEach((row, y) => {

0 commit comments

Comments
 (0)