camera improve

This commit is contained in:
Jonas Braus
2024-08-04 20:20:45 +02:00
parent efd553e8b0
commit ba42f2b7ad
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="../../../../../home/jonas/Schreibtisch/Export_Web/retromario.html" export_path="../../../../../home/jonas/Schreibtisch/Export_Web/index.html"
encryption_include_filters="" encryption_include_filters=""
encryption_exclude_filters="" encryption_exclude_filters=""
encrypt_pck=false encrypt_pck=false
+3
View File
@@ -80,6 +80,9 @@ func _process(delta):
# set camera # set camera
if position.y <= 32: if position.y <= 32:
if position.y < -640:
camera_2d.limit_bottom = -640
else:
camera_2d.limit_bottom = 32 camera_2d.limit_bottom = 32
camera_2d.limit_top = -1000 camera_2d.limit_top = -1000
else: else: