diff options
author | bd <bdunahu@operationnull.com> | 2025-05-23 18:23:54 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-23 18:23:54 -0400 |
commit | 5eb70873a34bdb0f20a5a4518115c73e957731ca (patch) | |
tree | 65c24b4ff15f2ace361dc38f2fa809448dbbe130 /scripts/gnome.gd | |
parent | 39acc5aff9c7ac75b34364ed4d389d7a6bcfc53d (diff) |
Refactor crawlers to define sprites in game_stats_config
Diffstat (limited to 'scripts/gnome.gd')
-rw-r--r-- | scripts/gnome.gd | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/gnome.gd b/scripts/gnome.gd index 308e5fc..c5f7777 100644 --- a/scripts/gnome.gd +++ b/scripts/gnome.gd @@ -3,9 +3,10 @@ extends "res://scripts/base_crawler.gd" var game_stats_config = preload("res://resources/game_stats_config.tres") func _ready() -> void: - damage = game_stats_config.gnome_damage - speed = game_stats_config.gnome_speed - max_health = game_stats_config.gnome_health - worth = game_stats_config.gnome_worth + damage = game_stats_config.crawlers["gnome"]["damage"] + speed = game_stats_config.crawlers["gnome"]["speed"] + max_health = game_stats_config.crawlers["gnome"]["health"] + worth = game_stats_config.crawlers["gnome"]["worth"] + sprite_atlas = game_stats_config.crawlers["gnome"]["sprite"] super() |