summaryrefslogtreecommitdiffstats
path: root/Los.gd
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-20 12:26:48 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-20 12:26:48 +0200
commit89723ca94bd21f1ae14592a682e9c0e5c5f04a74 (patch)
tree7b5c67f9d05f253abc961c901336780755543d6d /Los.gd
parentf3c455fbfb8b28b095c161eb7769ed92f1acb862 (diff)
downloadgodot-hexgrid-89723ca94bd21f1ae14592a682e9c0e5c5f04a74.zip
godot-hexgrid-89723ca94bd21f1ae14592a682e9c0e5c5f04a74.tar.gz
move demo files into subdir demo
Diffstat (limited to 'Los.gd')
-rw-r--r--Los.gd21
1 files changed, 0 insertions, 21 deletions
diff --git a/Los.gd b/Los.gd
deleted file mode 100644
index 324819a..0000000
--- a/Los.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-extends Node2D
-
-var p0 : Vector2
-var p1 : Vector2
-var p2 : Vector2
-
-func _ready():
- pass
-
-func _draw() -> void:
- if p2.x == -1:
- draw_line(p0, p1, Color(0, 255, 0))
- else:
- draw_line(p0, p2, Color(0, 255, 0))
- draw_line(p2, p1, Color(255, 0, 0))
-
-func setup(v0 :Vector2, v1 : Vector2, v2 : Vector2) -> void:
- p0 = v0
- p1 = v1
- p2 = v2
- update()