Add monitor image behaviour, change debug mode cycling on level

This commit is contained in:
Lucas S. Vieira 2024-11-12 13:51:49 -03:00
parent 4909f7d00c
commit 1fa493d4e8
7 changed files with 132 additions and 39 deletions

View file

@ -41,6 +41,7 @@ class ObjectId(Enum):
# This happens when the object in question is a particle
# or effect.
EXPLOSION = 0x0a
MONITOR_IMAGE = 0x0b
@staticmethod
def get(name):
@ -56,6 +57,7 @@ class ObjectId(Enum):
"goal_sign": ObjectId.GOAL_SIGN,
"switch": ObjectId.SWITCH,
"explosion": ObjectId.EXPLOSION,
"monitor_image": ObjectId.MONITOR_IMAGE,
}
result = switch.get(name.lower())
assert result is not None, f"Unknown common object {name}"