comparison doc/architecture.md @ 13:8df95050fc8b

no more build during pause; tower popup closes on any click outside it
author ark
date 2026-10-19 21:59 +0200
parents a77857594150
children 7fda634d15ad
comparison
equal deleted inserted replaced
12:dc314bfbb1cf 13:8df95050fc8b
222 game loop: 222 game loop:
223 223
224 - the simulation advances in fixed steps of 1/60 s. drawing happens once per 224 - the simulation advances in fixed steps of 1/60 s. drawing happens once per
225 browser frame and is independent of it 225 browser frame and is independent of it
226 - game speed 2x runs two simulation steps per frame 226 - game speed 2x runs two simulation steps per frame
227 - pause stops the simulation; drawing and input continue 227 - pause stops the simulation; drawing and the top bar buttons continue
228 - a frame that takes too long runs at most a few steps and drops the rest, so 228 - a frame that takes too long runs at most a few steps and drops the rest, so
229 the game slows down rather than freezing after the tab was in the background 229 the game slows down rather than freezing after the tab was in the background
230 230
231 state: 231 state:
232 232