mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
add map
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user