git init
This commit is contained in:
commit
80f2563cdc
95 changed files with 3327 additions and 0 deletions
13
scenes/Wolke/Spawner/wolken_spawner.gd
Normal file
13
scenes/Wolke/Spawner/wolken_spawner.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Marker2D
|
||||
|
||||
var speed
|
||||
|
||||
func _ready() -> void:
|
||||
speed = $"/root/Global".speed
|
||||
|
||||
|
||||
func _spawn() -> void:
|
||||
var wolke = preload("res://scenes/Wolke/wolke.tscn").instantiate()
|
||||
wolke.global_position.y = randi_range(0,50)
|
||||
$"../WolkenTimer".wait_time = randf_range(0.5,1.5)
|
||||
add_child(wolke)
|
Loading…
Add table
Add a link
Reference in a new issue