mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-28 09:47:16 +01:00
e95e3bf386
Add quickstart guide and quickstart demo Authored by Razoric and edited by Nathan and Johnny. The purpose of the guide is simply to give an overview of what the behaviors are there for, and a quick look at how to actually make use of them in the basis of this toolkit, with some explanatory comments. The actual user's manual will be built out of the API reference.
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/sprites/triangle.png" type="Texture" 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]
|
|
|
|
[node name="QuickStartDemo" type="Node2D"]
|
|
|
|
[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="Sprite" type="Sprite" parent="Player"]
|
|
modulate = Color( 0.968627, 0.188235, 0.0352941, 1 )
|
|
texture = ExtResource( 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="Sprite" type="Sprite" parent="Agent"]
|
|
modulate = Color( 0.478431, 0.87451, 0.0784314, 1 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="Bullets" type="Node2D" parent="."]
|