This commit is contained in:
BeGj
2025-03-07 16:53:10 +00:00
parent 0ddfc942a4
commit 619891741f
15 changed files with 28 additions and 22 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export async function createClientGame(
consolex.log("going to init path finder");
consolex.log("inited path finder");
const canvas = createCanvas();
let gameRenderer = createRenderer(
const gameRenderer = createRenderer(
canvas,
gameView,
eventBus,
+1 -1
View File
@@ -210,7 +210,7 @@ export function getPersistentIDFromCookie(): string {
// Try to get existing cookie
const cookies = document.cookie.split(";");
for (let cookie of cookies) {
for (const cookie of cookies) {
const [cookieName, cookieValue] = cookie.split("=").map((c) => c.trim());
if (cookieName === COOKIE_NAME) {
return cookieValue;
+1 -1
View File
@@ -42,7 +42,7 @@ export class TerrainLayer implements Layer {
initImageData() {
this.theme = this.game.config().theme();
this.game.forEachTile((tile) => {
let terrainColor = this.theme.terrainColor(this.game, tile);
const terrainColor = this.theme.terrainColor(this.game, tile);
// TODO: isn'te tileref and index the same?
const index = this.game.y(tile) * this.game.width() + this.game.x(tile);
const offset = index * 4;
+1 -1
View File
@@ -18,7 +18,7 @@ declare global {
}
}
// Add this at the top of your file
declare var adsbygoogle: any[];
declare let adsbygoogle: any[];
@customElement("win-modal")
export class WinModal extends LitElement implements Layer {