Permalink
Browse files

Mutable camera position point

  • Loading branch information...
1 parent c686ad5 commit 43803af7322e63a2de1ac193cafd03c7dca671f7 @reynders committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/grambers/Observer.scala
@@ -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)
}
}

0 comments on commit 43803af

Please sign in to comment.