forked from godot-extended-libraries/godot-next
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdemo_2d.tscn
63 lines (53 loc) · 1.95 KB
/
demo_2d.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[gd_scene load_steps=8 format=2]
[ext_resource path="res://addons/godot-next/2d/geometry_2d.gd" type="Script" id=1]
[ext_resource path="res://addons/godot-next/2d/trail_2d.gd" type="Script" id=2]
[ext_resource path="res://addons/godot-next/gui/debug_label.gd" type="Script" id=3]
[ext_resource path="res://addons/godot-next/2d/vector_display_2d.gd" type="Script" id=4]
[ext_resource path="res://demo/scripts/wandering_node_2d.gd" type="Script" id=5]
[ext_resource path="res://demo/scripts/test_vector_display.gd" type="Script" id=6]
[sub_resource type="CapsuleShape2D" id=1]
radius = 50.0
height = 100.0
[node name="Demo2D" type="Node2D"]
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2( 900, 450 )
[node name="Geometry2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource( 1 )
script = ExtResource( 1 )
color = Color( 1, 1, 1, 1 )
offset_position = Vector2( 0, 0 )
[node name="WanderingNode2D" type="Node2D" parent="."]
position = Vector2( 500, 450 )
script = ExtResource( 5 )
[node name="Trail2D" type="Line2D" parent="."]
position = Vector2( 500, 450 )
script = ExtResource( 2 )
target_path = NodePath("../WanderingNode2D")
trail_length = 50
[node name="DebugLabel" type="Label" parent="."]
margin_left = 100.0
margin_top = 400.0
margin_right = 289.0
margin_bottom = 499.0
text = "DebugLabel
WanderingNode2D
position = Vector2( 500, 450 )
velocity = null
name = \"WanderingNode2D\"
"
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
update_mode = 0
target_path = NodePath("../WanderingNode2D")
show_label_name = true
show_target_name = true
properties = PoolStringArray( "position", "velocity", "name" )
[node name="TestVectorDisplay2D" type="Node2D" parent="."]
position = Vector2( 100, 100 )
script = ExtResource( 6 )
pool_vector2_array = PoolVector2Array( 100, 200, 200, 100 )
[node name="VectorDisplay2D" type="Node" parent="TestVectorDisplay2D"]
script = ExtResource( 4 )
variable_name = "pool_vector2_array"