aboutsummaryrefslogtreecommitdiff
path: root/riot/laser_blast.gd
diff options
context:
space:
mode:
authorRoman Gräf <romangraef@gmail.com>2020-04-19 17:35:14 +0200
committerRoman Gräf <romangraef@gmail.com>2020-04-19 17:35:14 +0200
commite72709b75ab3c21b46f744466601e3e61f3d2b71 (patch)
tree264e39429a46c06d5c5c17d290ebf0ea3ba4cd06 /riot/laser_blast.gd
parente1d6ed5ec8d8ce4f6b507dcd9e4d65182805a1c9 (diff)
downloadLDJam46-e72709b75ab3c21b46f744466601e3e61f3d2b71.tar.gz
LDJam46-e72709b75ab3c21b46f744466601e3e61f3d2b71.tar.bz2
LDJam46-e72709b75ab3c21b46f744466601e3e61f3d2b71.zip
Laser Devs
Diffstat (limited to 'riot/laser_blast.gd')
-rw-r--r--riot/laser_blast.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/riot/laser_blast.gd b/riot/laser_blast.gd
new file mode 100644
index 0000000..a0f2ed5
--- /dev/null
+++ b/riot/laser_blast.gd
@@ -0,0 +1,7 @@
+extends Sprite
+
+export var speed = 700.0
+var move: Vector2 = Vector2(0, 0)
+func _physics_process(delta):
+ move
+ position += move * delta * speed