godot-steering-ai-framework/project/demos/Quickstart/QuickStartDemo.tscn
Nathan Lovato 6132a0aa25 Refactor the demos to support screen resizing
Add BackgroudLayer and DemoInterface scenes that we can reuse across demos
Set the game to 2D and extend window modes

Part of #21
2020-02-08 15:40:43 -06:00

54 lines
1.8 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[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/Player.gd" type="Script" id=3]
[ext_resource path="res://demos/Quickstart/Bullet.tscn" type="PackedScene" id=4]
[ext_resource path="res://demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
[node name="QuickStartDemo" type="Node"]
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
[node name="Player" type="KinematicBody2D" parent="." groups=[
"Player",
]]
position = Vector2( 235.469, 449.34 )
rotation = 1.5708
collision_mask = 2
script = ExtResource( 3 )
bullet = ExtResource( 4 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Player"]
polygon = PoolVector2Array( 0, -32, -24, 32, 24, 32 )
[node name="Line2D" type="Line2D" parent="Player"]
points = PoolVector2Array( 0, 32, 24, 32, 0, -32, -24, 32, 0, 32 )
width = 8.0
default_color = Color( 0.560784, 0.870588, 0.364706, 1 )
joint_mode = 2
antialiased = true
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 )
rotation = 1.5708
collision_layer = 2
collision_mask = 5
script = ExtResource( 2 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Agent"]
polygon = PoolVector2Array( 0, -32, -24, 32, 24, 32 )
[node name="Line2D" type="Line2D" parent="Agent"]
points = PoolVector2Array( 0, 32, 24, 32, 0, -32, -24, 32, 0, 32 )
width = 8.0
default_color = Color( 1, 0.709804, 0.439216, 1 )
joint_mode = 2
antialiased = true
script = ExtResource( 1 )
inner_color = Color( 0.890196, 0.411765, 0.337255, 1 )
[node name="Bullets" type="Node2D" parent="."]