mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-03-09 07:46:58 +01:00
Used `var variable := 0.0` as discussed in the Godot issue, instead of `var variable: = 0.0`. Mostly these are minor/cosmetic changes, but I've also reorganized the folder structure (naming of folders) to reflect our guidelines, plus made some minor changes to the demo codes. Still work in progress.
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)
|