Fix door opening sound

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-16 17:42:16 +01:00
parent bc74f7beee
commit bd486e4c82
9 changed files with 27 additions and 37 deletions

View File

@@ -10,7 +10,11 @@ class Door {
int openTime = 0;
static const int openDurationMs = 3000;
Door({required this.x, required this.y, required this.mapId});
Door({
required this.x,
required this.y,
required this.mapId,
});
/// Updates animation. Returns the NEW state if it changed this frame, else null.
DoorState? update(int currentTimeMs) {