Closed djuretic closed 7 years ago
This is awesome! :) Love how it is moving like the original game. I'd need to have a closer look at the code though, the function signature of Model -> Model -> ...
worries me a bit, i think it should be reduced to Model -> <Some Delta> -> ..
, but yeah, great work! :)
@mordrax done! Now the function signature is Vector -> Model -> Vector
.
Thanks for the feedback, I've updated the code.
I've changed the viewport algorithm, my aim was to be closer to the original game. Comments are welcome.
I feel that the new
updateViewportOffset
function can be refactored into several little functions.Screencast: