mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
Docker Update and Fixes
This commit is contained in:
@@ -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)';
|
||||
|
||||
Reference in New Issue
Block a user