fix: remove the whitespaces and clean up;

This commit is contained in:
2026-09-20 16:51:17 +02:00
parent 5d484134e7
commit 77214d4723
6 changed files with 2 additions and 13 deletions
+2 -2
View File
@@ -7,6 +7,7 @@ class_name Player
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
update_scrolls()
var damage: float = 2
if SceneManager.player_next_scene_spawn_pos != Vector2(0, 0):
position = SceneManager.player_next_scene_spawn_pos
@@ -17,6 +18,7 @@ func _physics_process(delta: float) -> void:
move_player()
push_blocks()
update_scrolls()
move_and_slide()
func move_player():
var move_vector: Vector2 = Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
@@ -45,8 +47,6 @@ func push_blocks():
if collisision_node.is_in_group("pushable"):
var collision_normal: Vector2 = collision.get_normal()
collisision_node.apply_central_force(-collision_normal * push_strength)
move_and_slide()
func update_scrolls():
$CanvasLayer/Panel/Label.text = str(SceneManager.opened_chests.size())