mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
made it so coins actually coin
This commit is contained in:
@@ -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"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user