diff --git a/steering_ai/Demos/SeekFlee/SeekFleeDemo.gd b/steering_ai/Demos/SeekFlee/SeekFleeDemo.gd index 027693c..9cdaa19 100644 --- a/steering_ai/Demos/SeekFlee/SeekFleeDemo.gd +++ b/steering_ai/Demos/SeekFlee/SeekFleeDemo.gd @@ -33,7 +33,7 @@ func _ready() -> void: rng.randf_range(0, camera_boundaries.size.x), rng.randf_range(0, camera_boundaries.size.y) ) - var entity: KinematicBody2D = spawner.Entity.instance() + var entity: KinematicBody2D = spawner.entity.instance() entity.global_position = new_pos entity.player_agent = player.agent entity.start_speed = linear_speed_max diff --git a/steering_ai/Demos/SeekFlee/SeekFleeDemo.tscn b/steering_ai/Demos/SeekFlee/SeekFleeDemo.tscn index 2b75042..b9fcdb0 100644 --- a/steering_ai/Demos/SeekFlee/SeekFleeDemo.tscn +++ b/steering_ai/Demos/SeekFlee/SeekFleeDemo.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=12 format=2] +[gd_scene load_steps=12 format=3] [ext_resource path="res://Demos/SeekFlee/Player.gd" type="Script" id=2] [ext_resource path="res://Demos/SeekFlee/SeekFleeDemo.gd" type="Script" id=3] @@ -74,7 +74,7 @@ shape = SubResource( 3 ) [node name="Spawner" type="Node2D" parent="."] script = ExtResource( 4 ) -Entity = ExtResource( 6 ) +entity = ExtResource( 6 ) [node name="DemoInterface" parent="." instance=ExtResource( 5 )] text_bbcode = "Seek & Flee Demo diff --git a/steering_ai/Demos/SeekFlee/Spawner.gd b/steering_ai/Demos/SeekFlee/Spawner.gd index abd3929..4c79074 100644 --- a/steering_ai/Demos/SeekFlee/Spawner.gd +++ b/steering_ai/Demos/SeekFlee/Spawner.gd @@ -1,6 +1,6 @@ extends Node2D # Holds data to instantiate and configure a number of agent entities. -export (PackedScene) var Entity: PackedScene +export (PackedScene) var entity: PackedScene export var entity_count := 10 export var entity_color := Color.blue