summaryrefslogtreecommitdiff
path: root/scenes/game_data/game_data.gd
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-22 13:50:49 -0400
committerbd <bdunahu@operationnull.com>2025-05-22 13:50:49 -0400
commit8c5c4863aeacb4afcf70f339df6d601e2df1a7a6 (patch)
tree6c2af54a18271534864a7a1daed7814ebac5abd1 /scenes/game_data/game_data.gd
parent80e145ba2b85e08f895e76ba6a03bb67bc9ce9ea (diff)
Reorganized files into scenes and scripts
Diffstat (limited to 'scenes/game_data/game_data.gd')
-rw-r--r--scenes/game_data/game_data.gd29
1 files changed, 0 insertions, 29 deletions
diff --git a/scenes/game_data/game_data.gd b/scenes/game_data/game_data.gd
deleted file mode 100644
index fd6a80e..0000000
--- a/scenes/game_data/game_data.gd
+++ /dev/null
@@ -1,29 +0,0 @@
-
-extends Node
-
-signal life_changed
-signal morale_changed
-var _life: int = 20
-var _morale: int = 10
-
-func get_life() -> int:
- return _life
-
-func add_life(amount: int):
- _life += amount
- emit_signal("life_changed", _life)
-
-func subtract_life(amount: int):
- _life -= amount
- emit_signal("life_changed", _life)
-
-func get_morale() -> int:
- return _morale
-
-func add_morale(amount: int):
- _morale += amount
- emit_signal("morale_changed", _morale)
-
-func subtract_morale(amount: int):
- _morale -= amount
- emit_signal("life_changed", _morale)