fuzzyworld

godot-shooter / commit

Changed the scoring system: picking up an objecting is +1, killing an enemy is +5.

325165dc932827391decfc312d24f4fd2375d710 · Pavel Safronov · 2023-11-11 15:23:37 -0800 · parents ce0d0f72f605

Changed the scoring system: picking up an objecting is +1, killing an enemy is +5.
 World.gd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/World.gd b/World.gd
index 36fd295..b4c97f2 100644
--- a/World.gd
+++ b/World.gd
@@ -24,7 +24,7 @@ var item_replacement_distance = 2000
 var is_dragging = false
 
 func enemy_killed(_position: Vector2):
-	$UI/HUD.score += 1
+	$UI/HUD.score += 5
 	$UI/HUD.show_message("Enemy killed!", 1)
 func health_consumed(_data):
 	$Player.heal(10)
@@ -33,7 +33,7 @@ func shield_consumed(_data):
 	$Player.enable_shield()
 func gold_consumed(_data):
 	completed_objectives += 1
-	$UI/HUD.score += 5
+	$UI/HUD.score += 1
 func weapon_consumed(data):
 	var weapon: Weapon = data
 	var is_same_weapon = $Player.weapon.name == weapon.name