342175f4c3
Includes full design documentation (ARCHITECTURE, DESIGN_NOTES, CONTENT_SPEC, PRODUCTION_NOTES) and active Godot 4 / GDScript codebase. Core systems built: player, floor generation, room system, enemy base, body part upgrades, run manager, save system, HUD, EventBus.
18 lines
470 B
GDScript
18 lines
470 B
GDScript
extends Area2D
|
|
|
|
var value: int = 1
|
|
|
|
func _ready() -> void:
|
|
body_entered.connect(_on_body_entered)
|
|
|
|
# Placeholder visual — gold circle
|
|
func _draw() -> void:
|
|
draw_circle(Vector2.ZERO, 5.0, Color(1.0, 0.8, 0.1))
|
|
draw_arc(Vector2.ZERO, 5.0, 0, TAU, 16, Color(1.0, 1.0, 0.4), 1.0)
|
|
|
|
func _on_body_entered(body: Node) -> void:
|
|
if body.is_in_group("player"):
|
|
UpgradeManager.hub_credits += value
|
|
EventBus.credits_changed.emit(UpgradeManager.hub_credits)
|
|
queue_free()
|