godot-steering-ai-framework/project/demos/pursue_vs_seek/Ship.gd
Francois Belair 0e95c24c7f Add GDQuest theme to improved Pursue demo
Changed text boxes to sliders to improve usability. This also involved
adding some simple graphics, since the _draw method is not
anti-aliased and doesn't look great.
2020-01-13 16:15:44 -05:00

14 lines
275 B
GDScript

extends KinematicBody2D
# Represents a basic ship
var tag: int = 0
func generate_sprite(sprite: Sprite) -> void:
var new_sprite = Sprite.new()
new_sprite.texture = sprite.texture
new_sprite.modulate = sprite.modulate
new_sprite.name = "Sprite"
add_child(new_sprite)