aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/main.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/main.kt')
-rw-r--r--src/main/kotlin/main.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/main.kt b/src/main/kotlin/main.kt
index c29374d..0d0d600 100644
--- a/src/main/kotlin/main.kt
+++ b/src/main/kotlin/main.kt
@@ -18,7 +18,13 @@ fun main() {
val raycaster = Raycaster()
- CameraController(camera, moveSpeed = 1.0, rotateSpeed = 15) {
+ CameraController(
+ camera,
+ moveSpeed = 1.0,
+ rotateSpeed = 15,
+ xMax = map.width - 1,
+ yMax = map.height - 1
+ ) {
paint(raycaster, context)
}