-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPlayer.tscn
74 lines (58 loc) · 1.94 KB
/
Player.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
64
65
66
67
68
69
70
71
72
73
74
[gd_scene load_steps=4 format=3 uid="uid://vmssqp0t7y7w"]
[ext_resource type="Texture2D" uid="uid://dttvdirodvjq7" path="res://images/ship.png" id="1"]
[ext_resource type="Script" path="res://PlayerShip.cs" id="2"]
[sub_resource type="RectangleShape2D" id="1"]
size = Vector2(39.5, 41.5)
[node name="ShipThings" type="Area2D"]
[node name="ClickBox" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 6.5)
shape = SubResource("1")
[node name="Stat" type="Node2D" parent="."]
[node name="IDLabel" type="Label" parent="Stat"]
offset_left = -35.0
offset_top = 28.0
offset_right = 35.0
offset_bottom = 42.0
grow_horizontal = 2
text = "UUIDUUID"
[node name="LinearVelocity" type="Label" parent="Stat"]
offset_left = -33.0
offset_top = 41.0
offset_right = 33.0
offset_bottom = 55.0
text = "LinVel"
[node name="AngularVelocity" type="Label" parent="Stat"]
offset_left = -33.0
offset_top = 53.0
offset_right = 33.0
offset_bottom = 67.0
text = "AngVel"
[node name="HitPoints" type="Label" parent="Stat"]
offset_left = -33.0
offset_top = 68.0
offset_right = 33.0
offset_bottom = 82.0
text = "HP"
[node name="Position" type="Label" parent="Stat"]
offset_left = -33.0
offset_top = 81.0
offset_right = 33.0
offset_bottom = 95.0
text = "Position"
[node name="Hex" type="Label" parent="Stat"]
offset_left = -33.0
offset_top = 93.0
offset_right = 33.0
offset_bottom = 107.0
text = "MyHex"
[node name="PlayerShip" type="CharacterBody2D" parent="."]
script = ExtResource("2")
[node name="Sprite2D" type="Sprite2D" parent="PlayerShip"]
scale = Vector2(0.25, 0.25)
texture = ExtResource("1")
[node name="ShipHitBox" type="CollisionPolygon2D" parent="PlayerShip"]
polygon = PackedVector2Array(-5, -31, 5, -31, 11, -10, 16, 5, 26, 10, 29, 28, -17, 28, -28, 28, -28, 15, -25, 10, -16, 4)
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="PlayerShip"]
remote_path = NodePath("../../Stat")
update_rotation = false
[node name="Camera2D" type="Camera2D" parent="PlayerShip"]