Initial files

This commit is contained in:
Jan Groß
2017-11-12 16:56:20 +01:00
commit 509eeffe1e
56 changed files with 1655 additions and 0 deletions

15
scripts/ray.gd Normal file
View File

@@ -0,0 +1,15 @@
extends Node2D
var colors = {
"red" : Color(255,0,0, 0.5),
"green":Color(0,255,0, 0.5)
}
var ray_color = colors.red
func _ready():
set_process(true)
func _process(delta):
update()
func _draw():
draw_line(get_pos(), get_pos()+Vector2(0,-1) * 10000, ray_color, 2.5)