camera improve
This commit is contained in:
+1
-1
@@ -419,7 +419,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_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_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
||||
+5
-2
@@ -80,8 +80,11 @@ func _process(delta):
|
||||
|
||||
# set camera
|
||||
if position.y <= 32:
|
||||
camera_2d.limit_bottom = 32
|
||||
camera_2d.limit_top = -1000
|
||||
if position.y < -640:
|
||||
camera_2d.limit_bottom = -640
|
||||
else:
|
||||
camera_2d.limit_bottom = 32
|
||||
camera_2d.limit_top = -1000
|
||||
else:
|
||||
camera_2d.limit_bottom = 272
|
||||
camera_2d.limit_top = 32
|
||||
|
||||
Reference in New Issue
Block a user