Hi there, fellow campers. I was learning p5.js and made this really fun project. It’s my first succesful one. Please tell me if you find any glitches or bugs. Thanks!
Just to let you know, click the screen to lock your cursor, and then use WASD to move.
This is actually really incredible. I never realised JavaScript could be used to render 3D graphics!
Only suggestion I would make is to set up some kind of listener to check if the cursor at the viewport edge and push it to the other side to allow for complete rotation.
Wow, that’s really cool! Was this tough to make? I didn’t notice any glitches but here would be some ideas if you plan on working on this project more:
adding jumping
adding shooting to shoot the columns/blocks
make it so you can’t walk through the columns/blocks
make it so you can’t walk off the platform or if you do, you die lol
I noticed that there seems to be inertia for the camera rotation, i.e. if you spin the camera to the side and lift the mouse off the mouse pad the camera will keep spinning. Kind of cool, but probably not something you actually want.
And yes collision and physics are not super easy to code from the ground up. There might be some third-party libraries (or p5 game engines) you can use.
Wow this is cool, i didn’t know js could be used to create this kind of projects, you did a great job, hopefully if you continue adding new features you let us know, keep up the good work