Track laser segments and update UI theme

Add per-cell laserSegments tracking and use it to render correct laser orientation: introduce laserSegments global, reset it at trace start, populate entries when tracing, and consult it in loadGrid to choose horizontal vs vertical classes. Update UI styling from a dark to a lighter theme (body and main backgrounds, cell/empty/mirror/wall colors and laser gradients), remove some borders/fit-content sizing, and add a "map" class to the map container in the HTML. These changes fix laser orientation rendering and refresh the game's visual theme.
This commit is contained in:
Sysy's
2026-03-31 09:20:28 +02:00
parent d0e282b41c
commit 4ba42f6566
3 changed files with 18 additions and 15 deletions

View File

@@ -7,7 +7,7 @@
<title>Game</title>
</head>
<body>
<div id="map"></div>
<div id="map" class="map"></div>
<script src="../../assets/js/game.js" defer></script>
</body>