diff options
author | Roman Gräf <romangraef@gmail.com> | 2020-04-18 15:33:01 +0200 |
---|---|---|
committer | Roman Gräf <romangraef@gmail.com> | 2020-04-18 15:33:01 +0200 |
commit | 6a6fd1828959e3343e58e3ddc36790b4a25e1747 (patch) | |
tree | b155ea05bf32aef00adca52f77a46deae248939e /riot/riot.gd | |
parent | 6c66e81946d005dac3b05be73889da28936b0ad0 (diff) | |
download | LDJam46-6a6fd1828959e3343e58e3ddc36790b4a25e1747.tar.gz LDJam46-6a6fd1828959e3343e58e3ddc36790b4a25e1747.tar.bz2 LDJam46-6a6fd1828959e3343e58e3ddc36790b4a25e1747.zip |
Anfänge von Riots und Eingebundene Dev hire assets
Diffstat (limited to 'riot/riot.gd')
-rw-r--r-- | riot/riot.gd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/riot/riot.gd b/riot/riot.gd new file mode 100644 index 0000000..da5e0fc --- /dev/null +++ b/riot/riot.gd @@ -0,0 +1,17 @@ +extends Node2D + +var dev = preload("res://riot/angrydev.tscn") + +func random_position(): + return Vector2(rand_range(30, 1000), rand_range(30, 600)) + +var devs = [] +func _ready() -> void: + for i in range(10): + var instance: AngryDev = dev.instance() + instance.position = random_position() + add_child(instance) + devs.append(instance) +func _input(event) -> void: + if event is InputEventMouseMotion: + print(event.position) |