delete gitignore files

This commit is contained in:
2022-12-10 09:37:51 +01:00
parent 23f14286fd
commit 7c076dbebb
166 changed files with 0 additions and 2048 deletions

View File

@@ -1,33 +0,0 @@
extends Node
class_name Train
signal hit(player, dmg)
signal game_over
var is_P1 = true
var current_distance = 0
var current_speed = 5
var CANNONS = []
var STORAGES = []
#@onready var ENGINE = $Module/Engine
@onready var root = get_tree().root.get_child(0) as Game
func _ready():
for child in get_children():
if(child is Cannon):
CANNONS.append(child)
if(child is Storage):
STORAGES.append(child)
root.shoot.connect(_on_signal_shooting)
func _on_signal_shooting():
for cannon in CANNONS:
if cannon.shoot():
hit.emit(is_P1,cannon.DAMAGE)
func is_dead():
if current_speed <= 0:
game_over.emit()