This is a 3D Engine that I stole from @MathMathMath . I made the collision engine, though. Feel free to use this in your own projects. Does not currently support collision from top and bottom, but that would be easy to fix. Use W, S, A, and D to move and left and right arrows to rotate camera. If someone could remix this and make some code that makes the camera revolve around a character, I would give them credit if I used it.