Docker Update and Fixes

This commit is contained in:
2026-01-25 17:36:15 +00:00
parent b7b718d4ca
commit 295be1ed8e
21 changed files with 886 additions and 289 deletions

View File

@@ -19,8 +19,10 @@ export function drawSmoggyBuildings(dc: DrawContext): void {
for (let row = 0; row < windowRows; row++) {
for (let col = 0; col < windowCols; col++) {
const isBroken = Math.random() > 0.85;
const isLit = Math.random() > 0.5;
// Deterministic "randomness" based on position to stop flashing
const seed = x + col * 13 + row * 71;
const isBroken = Math.abs(Math.sin(seed)) > 0.85;
const isLit = Math.cos(seed) > 0.1;
if (!isBroken) {
ctx.fillStyle = isLit ? 'rgba(255, 180, 100, 0.5)' : 'rgba(50, 50, 50, 0.8)';