update vintage theme

This commit is contained in:
evanpelle
2024-08-24 11:32:19 -07:00
parent 4a409c3578
commit a9785741b7
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -42,9 +42,10 @@
* improve terrain colors DONE 8/23/2024
* BUG: boat doesn't work if on lake if other player not on same lake DONE 8/23/2024
* Allow boats to attack TerraNullius DONE 8/23/2024
* try vintage theme
* improve menu (keep highlighted when click, allow deselect lobby)
* try vintage theme DONE 8/24/2023
* Boats can go diagonally
* Make lobby background the terrain map
* improve menu (keep highlighted when click, allow deselect lobby)
* add shader to dim border
* REFACTOR: remove player.info()
* REFACTOR: give terranullius an ID, game.player() returns terranullius
@@ -54,4 +55,3 @@
* BUG: fix hotreload (priority queue breaks it)
* PERF: use hierarchical a* search for boats
* Add terrain elevation to map
* Boats can go diagonally
+1 -1
View File
@@ -188,7 +188,7 @@ export class GameRenderer {
this.scale /= zoomFactor;
// Clamp the scale to prevent extreme zooming
this.scale = Math.max(0.1, Math.min(15, this.scale));
this.scale = Math.max(0.5, Math.min(20, this.scale));
const canvasRect = this.canvas.getBoundingClientRect();
const canvasX = event.x - canvasRect.left;
+3 -3
View File
@@ -4,9 +4,9 @@ import {Theme} from "./Config";
export const vintageTheme = new class implements Theme {
private background = colord({r: 210, g: 200, b: 180});
private land = colord({r: 190, g: 170, b: 150})
private shore = colord({r: 220, g: 200, b: 190}); // Brighter beige for shore
private background = colord({r: 150, g: 140, b: 120});
private land = colord({r: 195, g: 175, b: 155})
private shore = colord({r: 210, g: 190, b: 170}); // Brighter beige for shore
private water = colord({r: 160, g: 180, b: 200})
private shorelineWater = colord({r: 200, g: 200, b: 205}); // Slightly lighter muted blue for shoreline water