From fcfc2f9df77c4e7d10eea6a9dee10f0d13288f9c Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 30 Jul 2020 11:31:31 +0300 Subject: Add shadows to characters --- scripts/Shadow.gd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/Shadow.gd (limited to 'scripts/Shadow.gd') diff --git a/scripts/Shadow.gd b/scripts/Shadow.gd new file mode 100644 index 0000000..4ec8e7e --- /dev/null +++ b/scripts/Shadow.gd @@ -0,0 +1,21 @@ +extends Node2D + +export (float) var radius = 5 +export (Color) var color = Color.gray + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass + +func _draw(): + draw_circle(Vector2(0, 0), radius, color) -- cgit v1.3