(wip) First food commit

This commit is contained in:
Martin committed 2026-02-07 13:23:54 +01:00
1 parent 22ffa3dac1
commit 098348b329
7 files changed
+35 -6

No files matched your search

@@ -14,6 +14,9 @@ var damage: int = 10
var can_attack: bool = true
var desired_rotation: float = 0
# Resources / money
var resources: int = 0
func _ready() -> void:
var screen_size = get_viewport_rect().size
GameManager.init_screen_size(screen_size.x, screen_size.y)
@@ -82,3 +85,7 @@ func _on_attack_hit(body: Node2D) -> void:
func handle_damage(dmg: int, src: Node) -> void:
# TODO: damage logic
pass
func collect_resource(damnt: int) -> void:
resources += damnt
print("Resource collected! Total: ", resources)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.