fix boat trail bug

This commit is contained in:
evanpelle
2024-09-01 03:34:36 -07:00
parent 860d8ff164
commit a1e5419c19
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
* enable load balancing metrics DONE 8/31/2024
* BUG: island don't check if inscribed, just try to remove it DONE 8/31/2024
* if completely surrounded by same enemy, lose island DONE 8/31/2024
* fix boat leaves trail bug
* BUG: fix boat leaves trail DONE 9/1/2024
* end game when no players left (or after 1 hour or so?)
* use better favicon
* BUG: tiles get left behind during conquer
+3
View File
@@ -53,6 +53,8 @@ export class TerritoryRenderer {
boatEvent(event: BoatEvent) {
bfs(event.oldTile, dist(event.oldTile, 3)).forEach(t => {
// this.clearCell(t.cell())
// this.paintCell(t.cell(), new Colord({r: 0, g: 0, b: 0}), 200)
this.paintTerritory(t)
})
if (event.boat.isActive()) {
@@ -78,6 +80,7 @@ export class TerritoryRenderer {
paintTerritory(tile: Tile) {
if (!tile.hasOwner()) {
this.clearCell(tile.cell())
return
}
if (tile.isBorder()) {
this.paintCell(
+1 -1
View File
@@ -3,7 +3,7 @@ import {DefaultConfig} from "./DefaultConfig";
export const devConfig = new class extends DefaultConfig {
numSpawnPhaseTurns(): number {
return 60
return 40
}
gameCreationRate(): number {
return 3 * 1000