mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
0e95c24c7f
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.
14 lines
275 B
GDScript
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)
|