gd: added input addon
This commit is contained in:
13
guide_examples/shared/fireball/fireball.gd
Normal file
13
guide_examples/shared/fireball/fireball.gd
Normal file
@ -0,0 +1,13 @@
|
||||
extends Node2D
|
||||
|
||||
@export var speed:float = 600
|
||||
var direction:Vector2 = Vector2.ZERO
|
||||
|
||||
|
||||
func _ready():
|
||||
await get_tree().create_timer(5).timeout
|
||||
queue_free()
|
||||
|
||||
|
||||
func _process(delta):
|
||||
position += speed * direction * delta
|
Reference in New Issue
Block a user