Just a little project I cooked up in my spare time :) Feel free to use graphics and code for other projects ------------------------------------------------------------------------- Press A to move left Press D to move right Press Space to jump Press W while running to sprint Below is more technical explanation: ------------------------------------------------------------------------- This project uses slope detecton, ceiling detection, wall detection, and fall detection. Push See Inside and check the .state variable to see how this works. Floor detection uses a hitbox, not color sensing, which results in better movement and the character entity does not sink into the floor. The code also has a natural buffer to protect the entity from sinking into the ceiling, or going so fast that you break the code and you sink into the floor.