Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Toggle camera style #209

Closed Zemanzo closed 5 years ago

Zemanzo commented 5 years ago

Adds buttons in the top left of the viewport, so players can switch to their preferred camera style.

DOM remains as a partial so it can be easily added to the editor DOM later.

Closes #81

Zemanzo commented 5 years ago

@Qaomen Whilst we're discussing this anyway, should we move stuff like setCameraStyle over to cameras.js as well? Seems like it would fit better there, but I don't know if that will make things more complex.

Qaomen commented 5 years ago

@Qaomen Whilst we're discussing this anyway, should we move stuff like setCameraStyle over to cameras.js as well? Seems like it would fit better there, but I don't know if that will make things more complex.

I think it's best to leave the function in renderCore, since it's the renderer that owns/uses the camera.