diff --git a/examples/top-down-shooter/main.go b/examples/top-down-shooter/main.go index 2f021cc2..17c0c915 100644 --- a/examples/top-down-shooter/main.go +++ b/examples/top-down-shooter/main.go @@ -91,9 +91,7 @@ func main() { ctx.Window.(*oak.Window).DoBetweenDraws(func() { char.ShiftDelta() oak.SetViewport( - screenCenter.Sub(intgeom.Point2{ - int(char.X()), int(char.Y()), - }), + intgeom.Point2{int(char.X()), int(char.Y())}.Sub(screenCenter), ) char.Delta = floatgeom.Point2{} })