mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
5 uhr
This commit is contained in:
@@ -15,6 +15,8 @@ var speed_p1 = 10
|
||||
var speed_p2 = 10
|
||||
|
||||
func _ready():
|
||||
p1.get_node("root").test.connect(func(): print("player1"))
|
||||
p2.get_node("root").test.connect(func(): print("player2"))
|
||||
start_tween()
|
||||
|
||||
func start_tween():
|
||||
|
||||
17
scripts/Train.gd
Normal file
17
scripts/Train.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends Node
|
||||
|
||||
signal test
|
||||
|
||||
var speed = 10
|
||||
var CANNONS = []
|
||||
var STORAGES = []
|
||||
#@onready var ENGINE = $Module/Engine
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
test.emit() # Replace with function body.
|
||||
Reference in New Issue
Block a user