made it so coins actually coin

This commit is contained in:
JHDev2006
2025-09-13 19:53:31 +01:00
parent 6c5f57a9a4
commit 9f6f9c40c5
5 changed files with 12 additions and 17 deletions

View File

@@ -171,9 +171,6 @@ func _ready() -> void:
set_power_state_frame()
if Global.level_editor == null:
recenter_camera()
await get_tree().create_timer(0.1, false).timeout
for i in [$CameraCenterJoint/LeftWall/CollisionShape2D, $CameraCenterJoint/RightWall/CollisionShape2D]:
i.set_deferred("disabled", false)
func apply_character_physics() -> void:
var path = "res://Assets/Sprites/Players/" + character + "/CharacterInfo.json"

View File

@@ -74,10 +74,10 @@ var coins := 0:
set(value):
coins = value
if coins >= 100:#
coins = coins % 100
if Settings.file.difficulty.inf_lives == 0 and (Global.current_game_mode != Global.GameMode.CHALLENGE and Global.current_campaign != "SMBANN"):
lives += 1
lives += floor(coins / 100.0)
AudioManager.play_sfx("1_up", get_viewport().get_camera_2d().get_screen_center_position())
coins = coins % 100
var time := 300
var lives := 3
var world_num := 1