mahoraga- help me! press p to see animated map thing happen maho is adapting to raycasting I tried making an animated map it may crash ur computer idk its mahoragas adaptation wheel thingy I have given one entity a decent ai actually its kinda crap if he's far away he will slowly go in the rough direction of you but not exactly to you if he's close he will speed up and go basically straight to you he goes same speed as you so if he catches u he can't oof you yet but he will be stuck on ur screen cuz he will be right on u forever unless u restart the game or press v and basically start hacking on him lol yea, don't mind me turning player speed and turn speed up to max...... instead of him moving randomly and sometimes very rapidly 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