I’m working on ma first html game.
I wanted to add sneaking, so I just made a smaller version of the skin and used loadTexture,
but once I perss the sneak key it changes the texture and the player falls through the map (exept if he jumps, then he floats above the ground).
Check the game out on Itch.io to see the bug and/or visit github for the source code