Improve the feel of the demos, update changelog

This commit is contained in:
Nathan Lovato 2020-02-13 13:34:22 -06:00
parent 1daade7ea3
commit e9dd3b8a1e
9 changed files with 48 additions and 27 deletions

View File

@ -6,7 +6,11 @@ This document lists new features, improvements, changes, and bug fixes in every
### Features ###
- There is now a `Arrive3d` demo for a 3D usecase
- There is now an `Arrive3d` demo to showcase 3D movement.
### Improvements ###
- All the demos got a bit of attention to improve their feel.
### Changes ###
@ -20,6 +24,7 @@ This document lists new features, improvements, changes, and bug fixes in every
- Fixed `GSAIKinematicBody3DAgent` and `GSAIRigidBody3DAgent` trying to use `global_position` instead of `transform.origin`.
- The `SeekFleeDemo`'s boundaries will now match the size of the screen.
- Fixed error when double clicking an item in the DemoPicker.
- Fixed the background sometimes not covering the entire viewport in demos.
## Godot Steering AI Framework 2.0.0 ##

View File

@ -8,16 +8,19 @@
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=6]
[sub_resource type="CircleShape2D" id=1]
radius = 16.0
radius = 23.2163
[node name="ArriveDemo" type="Node"]
script = ExtResource( 3 )
[node name="BackgroudLayer" parent="." instance=ExtResource( 4 )]
[node name="TargetDrawer" type="Node2D" parent="."]
script = ExtResource( 5 )
[node name="Arriver" type="KinematicBody2D" parent="."]
show_behind_parent = true
position = Vector2( 512, 300 )
position = Vector2( 960, 540 )
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Arriver"]
@ -25,10 +28,7 @@ shape = SubResource( 1 )
script = ExtResource( 6 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
stroke = 4.0
[node name="TargetDrawer" type="Node2D" parent="."]
script = ExtResource( 5 )
stroke = 6.0
[node name="DemoInterface" parent="." instance=ExtResource( 2 )]
text_bbcode = "Arrive Demo

View File

@ -8,6 +8,7 @@
[node name="AvoidCollisionsDemo" type="Node"]
script = ExtResource( 2 )
linear_speed_max = 400.0
proximity_radius = 100.0
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]

View File

@ -4,7 +4,7 @@
[ext_resource path="res://demos/AvoidCollisions/Avoider.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 16.0
radius = 21.3503
[node name="Avoider" type="KinematicBody2D"]
script = ExtResource( 2 )
@ -14,4 +14,4 @@ shape = SubResource( 1 )
script = ExtResource( 1 )
inner_color = Color( 0.890196, 0.411765, 0.337255, 1 )
outer_color = Color( 1, 0.709804, 0.439216, 1 )
stroke = 4.0
stroke = 5.0

View File

@ -8,18 +8,20 @@
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=8]
[sub_resource type="CircleShape2D" id=1]
radius = 16.0
radius = 20.2633
[sub_resource type="CircleShape2D" id=2]
radius = 32.0
radius = 37.1052
[node name="FaceDemo" type="Node"]
script = ExtResource( 2 )
angular_speed_max = 160
angular_accel_max = 16
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 512, 450 )
position = Vector2( 687.363, 351.005 )
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
@ -27,10 +29,10 @@ shape = SubResource( 1 )
script = ExtResource( 8 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
stroke = 4.0
stroke = 6.0
[node name="Turret" type="KinematicBody2D" parent="."]
position = Vector2( 512, 286.288 )
position = Vector2( 984.348, 571.959 )
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Turret"]

View File

@ -8,10 +8,12 @@
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=6]
[sub_resource type="CircleShape2D" id=1]
radius = 16.0
radius = 24.1954
[node name="FollowPathDemo" type="Node"]
script = ExtResource( 4 )
linear_acceleration_max = 50.0
deceleration_radius = 200.0
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
@ -19,7 +21,7 @@ script = ExtResource( 4 )
script = ExtResource( 1 )
[node name="PathFollower" type="KinematicBody2D" parent="."]
position = Vector2( 512, 300 )
position = Vector2( 960, 540 )
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="PathFollower"]
@ -27,7 +29,7 @@ shape = SubResource( 1 )
script = ExtResource( 6 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
stroke = 4.0
stroke = 6.0
[node name="DemoInterface" parent="." instance=ExtResource( 2 )]
text_bbcode = "Follow Path Demo

View File

@ -10,8 +10,8 @@
[node name="PursueVSSeekDemo" type="Node"]
script = ExtResource( 4 )
linear_speed_max = 240.0
linear_accel_max = 40.0
linear_speed_max = 400.0
linear_accel_max = 80.0
predict_time = 1.1
[node name="BackgroudLayer" parent="." instance=ExtResource( 7 )]
@ -20,12 +20,17 @@ predict_time = 1.1
script = ExtResource( 3 )
[node name="Player" type="KinematicBody2D" parent="BoundaryManager"]
position = Vector2( 47.3369, 329.724 )
position = Vector2( 307.552, 555.999 )
rotation = 1.5708
collision_mask = 2
script = ExtResource( 2 )
thruster_strength = 600.0
side_thruster_strength = 20.0
__meta__ = {
"_edit_group_": true
}
thruster_strength = 1000.0
side_thruster_strength = 40.0
velocity_max = 450.0
angular_velocity_max = 3.0
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Player"]
polygon = PoolVector2Array( 0, -32, -24, 32, 24, 32 )
@ -40,9 +45,12 @@ script = ExtResource( 6 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
[node name="Pursuer" type="KinematicBody2D" parent="BoundaryManager"]
position = Vector2( 980, 550 )
position = Vector2( 1240.22, 866.784 )
collision_layer = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Pursuer"]
polygon = PoolVector2Array( 0, -32, -24, 32, 24, 32 )
@ -57,10 +65,13 @@ script = ExtResource( 6 )
inner_color = Color( 0.890196, 0.411765, 0.337255, 1 )
[node name="Seeker" type="KinematicBody2D" parent="BoundaryManager"]
position = Vector2( 980, 150 )
position = Vector2( 1240.22, 280.108 )
rotation = 3.14159
collision_layer = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
use_seek = true
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Seeker"]

View File

@ -13,7 +13,7 @@
[node name="Player" type="KinematicBody2D" parent="." groups=[
"Player",
]]
position = Vector2( 235.469, 449.34 )
position = Vector2( 402.346, 573.791 )
rotation = 1.5708
collision_mask = 2
script = ExtResource( 3 )
@ -32,7 +32,7 @@ script = ExtResource( 1 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
[node name="Agent" type="KinematicBody2D" parent="."]
position = Vector2( 807.798, 141.773 )
position = Vector2( 974.675, 266.224 )
rotation = 1.5708
collision_layer = 2
collision_mask = 5

View File

@ -24,7 +24,7 @@ script = ExtResource( 3 )
[node name="BackgroudLayer" parent="." instance=ExtResource( 8 )]
[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 512, 300 )
position = Vector2( 960, 540 )
collision_mask = 2
script = ExtResource( 2 )