v for debug wasd for move arrows to turn ADDED NEW COOL THING wall height thing make it higher stuff go up make it lower stuff go down slightly broken but I think it fits the weird, glitchy vibe of the backrooms also anchored entity size to map size so making map smaller makes the entity also look closer to u instead of making him look like an ant CONTROLS: W/S to move forward and back A/D to move left and right Left arrow/Right Arrow to look left and right V to open debug screen and adjust parameters finally I made something that works pretty much no bugs rendering is kinda pixely but like nobody even cares so its fine For anyone who actually wants to make a game with this (probably noone) When making a map, If you want the map bigger or smaller, What I would recommend you do is go into the debug screen and adjust the "wall height", "player speed", and "darkness Modifier" variables as changing those will make a map "feel" smaller or bigger. for example to make a map you've made feel bigger, lower player speed, make the wall height smaller, and decrease the darkness modifier. Do the opposite for making a level feel "smaller"
movement code isn't completely me, I looked at the movement for other 2d projects to get some ideas but the raycasting is done by me. this project is probably gonna be really inconsistent unless you use a powerful computer cuz lag basically if ur computer is trash like mine put ray adjustment step to be a big number put ray step to be a big number and make resolution smaller it will make ur graphics suck and rendering of complicated shapes suck even more but it wont lag so much If you have a good computer do whatever you want I don't rly care also I would keep my fov around 60 if you put it to 360 you have eyes all around ur head basically and it looks weird and if u put it to like 30 u js don't see much of anything if lines start appearing on ur screen weirdly that don't seem to make sense ur game is probably crashing bugs I fixed throughout making this I guess -camera snagging. rays getting snagged on certain odd shaped walls, making you see things that aren't in front of you -South facing bug. OH MY LORD this bug made me so mad when making my first Raycaster and this time I did it differently so that bug DOESN'T EXIST! take that bugs! -Clipping through walls. nothing to explain here, u used to be able to get stuck in walls, now u can't anymore. new stuff: -added more to debug screen -added even MORE to debug screen -entities exist (kinda unfinished but work) rn i js have the entity move around randomly lowk I recommend using turbowarp for this if ur computer is trash like mine