Removing stray images, small cleanups.

This commit is contained in:
2024-06-25 06:51:53 -07:00
parent 223b4aa1dc
commit 559f479db4
2053 changed files with 514 additions and 37268 deletions

View File

@@ -18,10 +18,11 @@ func _ready():
func _on_transitioned(scene):
print ("this transitioned")
reset_camera(scene)
$label._on_transitioned(scene)
$Node2D/label._on_transitioned(scene)
#scene.connect("transitioned", $label, "_on_transitioned")
scene.connect("transitioned", Callable(self, "_on_transitioned"))
@onready var camera:Camera2D = $Node2D/Camera2D
func reset_camera(scene):
#$Node2D.scale = Vector2(scene.background_scale, scene.background_scale)
@@ -29,15 +30,16 @@ func reset_camera(scene):
var x:Sprite2D = scene.find_child("bg");
var height = x.texture.get_height()
var far_point = self.to_global(Vector2(x.texture.get_width(), x.texture.get_height() ) * x.get_global_transform())
print(far_point)
print("FAR POINT IS ", far_point)
var bg = $Node2D/background
$Camera2D.make_current()
$Camera2D.limit_right = far_point.x
$Camera2D.limit_bottom=far_point.y
$Node2D/background/Graham/RemoteTransform2D.remote_path=$Camera2D.get_path()
$Camera2D.reset_smoothing()
#$Node2D/background/Graham/Camera2D.limit_right = far_point.x
#$Node2D/background/Graham/Camera2D.limit_bottom =far_point.y
camera.make_current()
camera.limit_right = far_point.x
camera.limit_bottom=far_point.y
$Node2D/background/Graham/RemoteTransform2D.remote_path=camera.get_path()
camera.reset_smoothing()
camera.limit_right = far_point.x
camera.limit_bottom =far_point.y
#$Node2D/background/Graham/Camera2D.reset_smoothing()
#$Node2D/background/Graham/Camera2D.reset_smoothing()
@@ -45,3 +47,6 @@ func reset_camera(scene):
func _process(delta):
var s = $Node2D/background.ego_scale($Node2D/background/Graham)
$Node2D/background/Graham.scale = Vector2(s, s)
func _unhandled_input(event: InputEvent) -> void:
$Node2D.push_input(event)