This commit is contained in:
2022-12-10 08:53:58 +01:00
parent c278c93c52
commit f3d3048291
7 changed files with 44 additions and 8 deletions

View File

@@ -5,7 +5,8 @@ signal hit(player, dmg)
signal game_over
var is_P1 = true
var current_speed = 10
var current_distance = 0
var current_speed = 5
var CANNONS = []
var STORAGES = []
#@onready var ENGINE = $Module/Engine
@@ -25,7 +26,6 @@ func _on_signal_shooting():
for cannon in CANNONS:
if cannon.shoot():
hit.emit(is_P1,cannon.DAMAGE)
print("Shot P2")
func is_dead():
if current_speed <= 0: