Skip to content
Snippets Groups Projects
Commit 7e2bb004 authored by Theo Brockmann's avatar Theo Brockmann
Browse files

Replace World.gd

parent 4f002d8f
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ func _process(delta):
func set_camera_limits():
# Sets the boundaries of the field of view
var map_limits = $TileMap.get_used_rect()
var map_cellsize = $TileMap.cell_size
$CarTest/Camera2D.limit_left = map_limits.position.x * map_cellsize.x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment