Skip to content

Commit

Permalink
examples/top-down-shooter: fix set viewport logic
Browse files Browse the repository at this point in the history
  • Loading branch information
200sc committed May 21, 2022
1 parent c746211 commit d24e386
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/top-down-shooter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
})
Expand Down

0 comments on commit d24e386

Please sign in to comment.