wobblyhead hg > minor_monsters
comparison game/js/input.js @ 15:c1c7e4f54bf6
balance work prep
| author | ark |
|---|---|
| date | 2026-10-19 23:36 +0200 |
| parents | 8df95050fc8b |
| children |
comparison
equal
deleted
inserted
replaced
| 14:7fda634d15ad | 15:c1c7e4f54bf6 |
|---|---|
| 109 else if (b.id === "retry") app.retry(); | 109 else if (b.id === "retry") app.retry(); |
| 110 else if (b.id === "restart") app.restart(); | 110 else if (b.id === "restart") app.restart(); |
| 111 else if (b.id === "pause") game.togglePause(); | 111 else if (b.id === "pause") game.togglePause(); |
| 112 else if (b.id === "speed") game.speedIndex = (game.speedIndex + 1) % game.speeds.length; | 112 else if (b.id === "speed") game.speedIndex = (game.speedIndex + 1) % game.speeds.length; |
| 113 else if (b.id === "early") game.startEarly(); | 113 else if (b.id === "early") game.startEarly(); |
| 114 else if (b.id === "shop" && !game.paused && game.canAfford(MM.config.tower[b.tower].cost)) game.chooseShop(b.tower); | 114 else if (b.id === "shop" && !game.paused && game.canAfford(MM.config.tower[b.tower].cost[0])) game.chooseShop(b.tower); |
| 115 else if (b.id === "upgrade") game.upgrade(); | 115 else if (b.id === "upgrade") game.upgrade(); |
| 116 else if (b.id === "sell") game.sell(); | 116 else if (b.id === "sell") game.sell(); |
| 117 return null; | 117 return null; |
| 118 } | 118 } |
| 119 if (game.result || game.paused) return null; | 119 if (game.result || game.paused) return null; |
