INSTRUCTIONS: Press H to hide/show variables WHEN IN PLAY MODE: -Arrow keys to move -L to enable editor -You cannot edit the level or start position while in play mode. -Spikes kill the player -Falling to the bottom of the screen kills the player -The yellow circle is the goal, when touching it you will have beat the level and will return to edit mode -You fall through fake ground -Press down to sink in water -Hold jump to float faster and jump out of water -Lava kills you -Gravity Modifiers change the pull of gravity -Springs bounce you when touching the top. WHEN IN EDITOR MODE: -M/N to change object -D to toggle draggable block placement (does not work with eraser) -Click to place objects -O to set start position (the place the player will spawn after death) -P to play -C to enable eraser -V to disable eraser -E to erase all -G to switch gravity 1=down -1=up
Thanks to @griffpatch for the snap to grid code and platforming code (tweaked by me) and slope detection code. Intro made by @xX_esc_Xx and heavily tweaked by me. Everything else by me. CHANGE LOG: 2/7/2021: Added Slopes and fixed an eraser glitch 2/9/2021 Added Water, Lava, Gravity Modifiers, Reverse Gravity, Changed Spike Costumes, and Fixed ANOTHER Eraser Glitch. 2/12/2021: If you die the gravity is reset to the direction it was when you started play mode instead of whichever direction the gravity was in when you died. 2/12/21: fixed a very complicated glitch involving changing gravity. also added intro. 2/13/2021: added drag to place blocks feature 2/17/2021: You can now go up slopes! You no longer have to jump up them! Changed the max speed to 6 (because of slopes) and max jump height to 14. 3/2/2021: All objects now line up perfectly on the grid (they no longer overlap by 1 pixel) and eraser works perfectly (probably) Blocks are now 48x48 pixels instead of 48x49 (I originally intended it to be 48x48 but for whatever reason it was 48x49)