mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-28 09:47:16 +01:00
16cc3efb43
Fixes #45
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
[gd_scene load_steps=9 format=2]
|
|
|
|
[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/Player.gd" type="Script" id=3]
|
|
[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/CircleDraw.gd" type="Script" id=8]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 20.2633
|
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
|
radius = 37.1052
|
|
|
|
[node name="FaceDemo" type="Node"]
|
|
script = ExtResource( 2 )
|
|
angular_speed_max = 662
|
|
angular_accel_max = 924
|
|
deceleration_radius = 136
|
|
|
|
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
|
|
|
|
[node name="Player" type="KinematicBody2D" parent="."]
|
|
position = Vector2( 687.363, 351.005 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
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 = 6.0
|
|
|
|
[node name="Turret" type="KinematicBody2D" parent="."]
|
|
position = Vector2( 984.348, 571.959 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Turret"]
|
|
shape = SubResource( 2 )
|
|
script = ExtResource( 8 )
|
|
inner_color = Color( 0.890196, 0.411765, 0.337255, 1 )
|
|
outer_color = Color( 1, 0.709804, 0.439216, 1 )
|
|
stroke = 8.0
|
|
|
|
[node name="DemoInterface" parent="." instance=ExtResource( 4 )]
|
|
text_bbcode = "Face Demo
|
|
Move the [color=lime]green player[/color] around with WASD and notice the [color=#ffb570]orange turret[/color] orient itself"
|