summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/game_data.gd5
-rw-r--r--scripts/game_stats_config.gd19
-rw-r--r--scripts/wyvern_projectile.gd1
3 files changed, 14 insertions, 11 deletions
diff --git a/scripts/game_data.gd b/scripts/game_data.gd
index f03eaa7..6850b35 100644
--- a/scripts/game_data.gd
+++ b/scripts/game_data.gd
@@ -1,6 +1,7 @@
extends Node
var game_stats_config = preload("res://resources/game_stats_config.tres")
+var morale_down = preload("res://assets/morale_down.wav")
signal life_changed
signal morale_changed
@@ -36,6 +37,10 @@ func subtract_morale(amount: int):
emit_signal("morale_changed")
if (_morale < 1):
get_tree().change_scene_to_file("res://scenes/game_over.tscn")
+ else:
+ var ap = get_tree().current_scene.get_node("Blips")
+ ap.stream = morale_down
+ ap.play()
func get_current_wave() -> int:
return _current_wave
diff --git a/scripts/game_stats_config.gd b/scripts/game_stats_config.gd
index 38d9cd8..a10bef8 100644
--- a/scripts/game_stats_config.gd
+++ b/scripts/game_stats_config.gd
@@ -35,14 +35,6 @@ enum defenders_index {WARLOCK, WYVERN, WEREWOLF, WELLSPRING}
},
},
{
- "desc": "Sparrow (DUP)",
- "sprite_panel": Vector2i(35, 5),
- "cost": 7,
- "effects": {
- "fire_rate": 1.7
- }
- },
- {
"desc": "Falcon (RNGE)",
"sprite_panel": Vector2i(34, 4),
"cost": 20,
@@ -53,6 +45,13 @@ enum defenders_index {WARLOCK, WYVERN, WEREWOLF, WELLSPRING}
"sprite_idle": Vector2i(31, 1),
}
},
+ {
+ "desc": "Sparrow (DUP)",
+ "sprite_panel": Vector2i(35, 5),
+ "cost": 9999,
+ "effects": {
+ }
+ },
],
},
{
@@ -77,7 +76,7 @@ enum defenders_index {WARLOCK, WYVERN, WEREWOLF, WELLSPRING}
"sprite_panel": Vector2i(26, 11),
"sprite_attacking": Vector2i(26, 11),
"sprite_idle": Vector2i(26, 11),
- "cost": 1,
+ "cost": 9999,
"upgrades": [],
},
{
@@ -88,7 +87,7 @@ enum defenders_index {WARLOCK, WYVERN, WEREWOLF, WELLSPRING}
"sprite_panel": Vector2i(38, 11),
"sprite_attacking": Vector2i(38, 11),
"sprite_idle": Vector2i(38, 11),
- "cost": 1,
+ "cost": 9999,
"upgrades": [],
}
]
diff --git a/scripts/wyvern_projectile.gd b/scripts/wyvern_projectile.gd
index 9b59bb0..7febbe0 100644
--- a/scripts/wyvern_projectile.gd
+++ b/scripts/wyvern_projectile.gd
@@ -3,7 +3,6 @@ extends CharacterBody2D
var target
var curr = ""
var projectile_damage
-# todo hook this up
var damage_tick_rate
func _on_damage_tick_timeout() -> void: