Use the arrow keys or WASD to move through the world. Press space to strafe - this replaces rotation with sideways movement! Use I to toggle wireframe! Press M to change the map! There are 2 maps so far. Map 2 has an example of sprite support. Finally, use the controls at the top to change the quality of the rendering. If you put them too high, it might lag; don't say I didn't warn you! Just so you know what the controls do: Sprite size: Changes the maximum size of the sprite. A value of 1 has slight glitches, while a value of 2 does not. Resolution: The resolution for the triangle filler. Higher values will produce more curved edges. Render distance: Changes the maximum distance the map will render to. On smaller maps (e.g. Map 1), this doesn't do much, but on larger maps (e.g. Map 2), this setting is a lifesaver. Want to have a high render distance on Map 2 without much lag? Go here: https://phosphorus.github.io/app.html?id=167694661&turbo=false&full-screen=true
This is a work-in-progress 3D engine based off of the SNES's "Mode 7" graphics mode. I am working to improve the engine, so be sure to check back for later updates ;) Agenda: 1. Allow the project to read from a map. 2. Add sprite support (i.e. fixed sprites that move in 3D, like the pipes in Super Mario Kart) Changelog: v0.7 (6/29/2017): -Added the ability for the project to read maps from lists -Added sprite support (still WIP) -Added multiple map support (press M to check it out) -Added various optimizations to prevent lag -Discovered glitch with sprites not appearing in the correct place v0.6 (6/28/2017): -Fixed glitch with rotation only happening about the origin (huge thanks to @DadOfMrLog for helping me fix this!) -Changed controls slightly (well, maybe a bit more than slightly, but oh well) v0.5 (6/27/2017): -Double upload! -Player can now move through the world using WASD. -Changed wireframe button from W to I -Discovered glitch with rotation only happening about the origin v0.4 (6/27/2017): -Fixed glitch with tri filler -Removed @DadOfMrLog's offscreen pen engine for a more efficient approach -Added controls -Redid description v0.3 (6/22/2017): -Fixed glitch with rotation -Added 's tri filler -Tri filler glitch discovered v0.2 (6/21/2017): -Added 's offscreen pen engine -Fixed glitch with inaccurate rendering v0.1 (6/16/2017): -Initial release of project -Discovered glitch with rotation -Discovered glitch with inaccurate rendering