Skip to content

Commit

Permalink
Mutable camera position point
Browse files Browse the repository at this point in the history
  • Loading branch information
reynders committed May 13, 2012
1 parent c686ad5 commit 43803af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/grambers/Observer.scala
Expand Up @@ -22,7 +22,7 @@ class Observer (var w: Int, var h: Int, val universe : Universe, var thingInFocu
var y = if ((thingInFocus.center.y - h/2) < 0) h/2
else if ((thingInFocus.center.y + h/2) > universe.HEIGHT) universe.HEIGHT - h/2
else thingInFocus.center.y
observer.position = Point(x, y)
observer.position.set(x, y)
}
}

Expand Down

0 comments on commit 43803af

Please sign in to comment.