Adjust bullet speed, update collectable node structure, and enhance marketplace layout; add marketplace button resource

This commit is contained in:
2025-05-03 15:53:42 +02:00
parent 31078af974
commit b36df13982
420 changed files with 31 additions and 12282 deletions

View File

@@ -33,19 +33,19 @@ func set_coins_label() -> void:
return
#todo: set internationalized text
coins_label.text = "Coins: " + str(game_manager.get_coins())
coins_label.text = "Coins:" + str(game_manager.get_coins())
func set_lives_label() -> void:
if not game_manager:
return
lives_label.text = "Lives: " + str(game_manager.get_lives())
lives_label.text = "Lives:" + str(game_manager.get_lives())
func set_health_progressbar() -> void:
if not player_health:
return
health_progressbar.value = player_health.health
health_progressbar.max_value = player_health.max_health

View File

@@ -7,6 +7,7 @@ extends Node
@export var font: Font
@export var skill_unlocker: SkillUnlockerComponent
@export var components_to_disable: Array[Node] = []
@export var marketplace_button: PackedScene
@onready var game_manager: GM = $"/root/GameManager"
@@ -43,9 +44,8 @@ func _input(event: InputEvent) -> void:
func create_upgrade_button(skill: SkillData):
var button := Button.new()
var button := marketplace_button.instantiate() as Button
button.text = skill.name + " " + str(skill.cost)
button.flat = true
button.icon = skill.icon
button.pressed.connect(func () -> void: _on_button_pressed(skill))

View File

@@ -30,5 +30,4 @@ func _ready() -> void:
if not has_bought_game:
print("You have not bought the game.")
get_tree().quit(69)