wobblyhead hg > minor_monsters
comparison game/js/main.js @ 8:2c4fed8baed9
art update, persistent sound setting, tower selling as double action
| author | ark |
|---|---|
| date | 2026-10-19 13:37 +0200 |
| parents | 910b26feca76 |
| children | 8df95050fc8b |
comparison
equal
deleted
inserted
replaced
| 7:4fd2da999ba4 | 8:2c4fed8baed9 |
|---|---|
| 13 | 13 |
| 14 var canvas = document.getElementById("game"); | 14 var canvas = document.getElementById("game"); |
| 15 var ctx = canvas.getContext("2d"); | 15 var ctx = canvas.getContext("2d"); |
| 16 var game = null; | 16 var game = null; |
| 17 var L = null; | 17 var L = null; |
| 18 var view = { dpr: 1, now: 0, refused: null, stats: { ms: 0 } }; | 18 var view = { dpr: 1, now: 0, refused: null, hover: null, stats: { ms: 0 } }; |
| 19 | 19 |
| 20 // the first map is the debug start map; only it starts at the debug | 20 // the first map is the debug start map; only it starts at the debug |
| 21 // start wave | 21 // start wave |
| 22 var FIRST = MM.util.clamp(cfg.debug.start_map, 0, MM.maps.length - 1); | 22 var FIRST = MM.util.clamp(cfg.debug.start_map, 0, MM.maps.length - 1); |
| 23 | 23 |
