Skip to content
Snippets Groups Projects
Commit b397d421 authored by Midras Lappe's avatar Midras Lappe
Browse files
parents baac0e7a 7e2bb004
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