You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When finishing a level _draw_visual_state1 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')
.Footnotes
https://github.com/eevee/lexys-labyrinth/blob/b4ebdf069d55817e7a983addcbda042b353b3bd0/js/tileset.js#L2457-L2470 ↩
The text was updated successfully, but these errors were encountered: