Opened the steering ai demo in 4.5.0.

This commit is contained in:
Relintai 2024-09-26 13:09:09 +02:00
parent 2cbc3ea3af
commit aeff6f56e4
16 changed files with 22 additions and 27 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=8 format=3]
[ext_resource path="res://Demos/Arrive/Arriver.gd" type="Script" id=1] [ext_resource path="res://Demos/Arrive/Arriver.gd" type="Script" id=1]
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=2] [ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=2] [gd_scene load_steps=14 format=3]
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=1] [ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=1]
[ext_resource path="res://Demos/Arrive3d/Camera.gd" type="Script" id=2] [ext_resource path="res://Demos/Arrive3d/Camera.gd" type="Script" id=2]
@ -54,7 +54,6 @@ material/0 = ExtResource( 5 )
[node name="Nose" type="MeshInstance" parent="Arriver"] [node name="Nose" type="MeshInstance" parent="Arriver"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 1.25 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 1.25 )
mesh = SubResource( 3 ) mesh = SubResource( 3 )
material/0 = null
[node name="Camera" type="Camera" parent="."] [node name="Camera" type="Camera" parent="."]
transform = Transform( 0.989952, 0.0720094, -0.121693, 0.0339305, 0.714503, 0.69881, 0.137271, -0.695917, 0.70488, -7.68317, 14.1265, 25.616 ) transform = Transform( 0.989952, 0.0720094, -0.121693, 0.0339305, 0.714503, 0.69881, 0.137271, -0.695917, 0.70488, -7.68317, 14.1265, 25.616 )

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=6 format=3]
[ext_resource path="res://Demos/AvoidCollisions/Spawner.gd" type="Script" id=1] [ext_resource path="res://Demos/AvoidCollisions/Spawner.gd" type="Script" id=1]
[ext_resource path="res://Demos/AvoidCollisions/AvoidCollisionsDemo.gd" type="Script" id=2] [ext_resource path="res://Demos/AvoidCollisions/AvoidCollisionsDemo.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=3]
[ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=1] [ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=1]
[ext_resource path="res://Demos/AvoidCollisions/Avoider.gd" type="Script" id=2] [ext_resource path="res://Demos/AvoidCollisions/Avoider.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=2] [gd_scene load_steps=7 format=3]
[ext_resource path="res://Demos/PopulateItemList.gd" type="Script" id=1] [ext_resource path="res://Demos/PopulateItemList.gd" type="Script" id=1]
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=2] [ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=2] [gd_scene load_steps=9 format=3]
[ext_resource path="res://Demos/Face/Turret.gd" type="Script" id=1] [ext_resource path="res://Demos/Face/Turret.gd" type="Script" id=1]
[ext_resource path="res://Demos/Face/FaceDemo.gd" type="Script" id=2] [ext_resource path="res://Demos/Face/FaceDemo.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=8 format=3]
[ext_resource path="res://Demos/FollowPath/Drawer.gd" type="Script" id=1] [ext_resource path="res://Demos/FollowPath/Drawer.gd" type="Script" id=1]
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=2] [ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=6 format=3]
[ext_resource path="res://Demos/GroupBehaviors/Member.tscn" type="PackedScene" id=1] [ext_resource path="res://Demos/GroupBehaviors/Member.tscn" type="PackedScene" id=1]
[ext_resource path="res://Demos/GroupBehaviors/Spawner.gd" type="Script" id=2] [ext_resource path="res://Demos/GroupBehaviors/Spawner.gd" type="Script" id=2]
@ -6,7 +6,6 @@
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=4] [ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=4]
[ext_resource path="res://Demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5] [ext_resource path="res://Demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
[node name="GroupBehaviorsDemo" type="Node"] [node name="GroupBehaviorsDemo" type="Node"]
script = ExtResource( 3 ) script = ExtResource( 3 )
linear_accel_max = 4234.0 linear_accel_max = 4234.0

View File

@ -1,9 +1,8 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=3]
[ext_resource path="res://Demos/GroupBehaviors/Member.gd" type="Script" id=1] [ext_resource path="res://Demos/GroupBehaviors/Member.gd" type="Script" id=1]
[ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=3] [ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=3]
[sub_resource type="CircleShape2D" id=1] [sub_resource type="CircleShape2D" id=1]
radius = 16.0 radius = 16.0

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=8 format=3]
[ext_resource path="res://Demos/PursueSeek/Pursuer.gd" type="Script" id=1] [ext_resource path="res://Demos/PursueSeek/Pursuer.gd" type="Script" id=1]
[ext_resource path="res://Demos/PursueSeek/Player.gd" type="Script" id=2] [ext_resource path="res://Demos/PursueSeek/Player.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=3]
[ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=1] [ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=1]
[ext_resource path="res://Demos/Quickstart/Bullet.gd" type="Script" id=2] [ext_resource path="res://Demos/Quickstart/Bullet.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=6 format=3]
[ext_resource path="res://Demos/Utils/Line2DDraw.gd" type="Script" id=1] [ext_resource path="res://Demos/Utils/Line2DDraw.gd" type="Script" id=1]
[ext_resource path="res://Demos/Quickstart/Agent.gd" type="Script" id=2] [ext_resource path="res://Demos/Quickstart/Agent.gd" type="Script" id=2]
@ -10,9 +10,7 @@
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )] [node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
[node name="Player" type="KinematicBody2D" parent="." groups=[ [node name="Player" type="KinematicBody2D" parent="." groups=["Player"]]
"Player",
]]
position = Vector2( 402.346, 573.791 ) position = Vector2( 402.346, 573.791 )
rotation = 1.5708 rotation = 1.5708
collision_mask = 2 collision_mask = 2

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=3]
[ext_resource path="res://Demos/SeekFlee/Seeker.gd" type="Script" id=1] [ext_resource path="res://Demos/SeekFlee/Seeker.gd" type="Script" id=1]
[ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=2] [ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=2 format=3]
[ext_resource path="res://assets/sprites/background.png" type="Texture" id=1] [ext_resource path="res://assets/sprites/background.png" type="Texture" id=1]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=4 format=3]
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=1] [ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=1]
[ext_resource path="res://Demos/Utils/DemoInterface.gd" type="Script" id=2] [ext_resource path="res://Demos/Utils/DemoInterface.gd" type="Script" id=2]

View File

@ -42,35 +42,35 @@ enabled=PoolStringArray( )
sf_left={ sf_left={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
] ]
} }
sf_right={ sf_right={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
] ]
} }
sf_up={ sf_up={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
] ]
} }
sf_down={ sf_down={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
] ]
} }
toggle_fullscreen={ toggle_fullscreen={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
click={ click={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null) "events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"canceled":false,"doubleclick":false,"script":null)
] ]
} }