When finishing a level _draw_visual_state^1 is asked to draw a state of exited.
Tile World (static) tilesets don't have exited so (even though the code logs a warning) it proceeds to call draw_drawspec, which fails because it Cannot read properties of undefined (reading '__special__').
Tile World (animated) tilesets have exited, but it's an alias to normal, which itself is an alias to moving. The code in _draw_visual_state only resolves aliases once, so a string is passed to draw_drawspec, and it calls _draw_standard which fails with Cannot read properties of undefined (reading '0').
When finishing a level
_draw_visual_state
^1 is asked to draw a state ofexited
.Tile World (static)
tilesets don't haveexited
so (even though the code logs a warning) it proceeds to calldraw_drawspec
, which fails because itCannot read properties of undefined (reading '__special__')
.Tile World (animated)
tilesets haveexited
, but it's an alias tonormal
, which itself is an alias tomoving
. The code in_draw_visual_state
only resolves aliases once, so a string is passed todraw_drawspec
, and it calls_draw_standard
which fails withCannot read properties of undefined (reading '0')
.