-
Notifications
You must be signed in to change notification settings - Fork 13
/
TrainVehicle.tscn
44 lines (34 loc) · 1.33 KB
/
TrainVehicle.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
[gd_scene load_steps=4 format=3 uid="uid://bjqtvbefblx2e"]
[ext_resource type="PackedScene" uid="uid://dt488rqstaeu8" path="res://Scenes/Bogie.tscn" id="1"]
[ext_resource type="Script" path="res://Scripts/TrainVehicle.gd" id="2"]
[ext_resource type="Texture2D" uid="uid://cgp7ivfkt0kqu" path="res://Demo/Assets/train_car.png" id="3"]
[node name="TrainVehicle" type="Node2D"]
script = ExtResource("2")
[node name="Bogie" parent="." groups=["train_front_wheels"] instance=ExtResource("1")]
[node name="Bogie2" parent="." groups=["train_back_wheels"] instance=ExtResource("1")]
[node name="Body" type="Node2D" parent="."]
z_index = 10
[node name="Node2D" type="Node2D" parent="Body"]
z_index = 3
z_as_relative = false
[node name="ColorRect" type="ColorRect" parent="Body/Node2D"]
offset_left = -15.0
offset_top = -4.0
offset_right = -7.0
offset_bottom = 4.0
color = Color(0.133333, 0.133333, 0.133333, 1)
[node name="ColorRect2" type="ColorRect" parent="Body/Node2D"]
offset_left = 68.0
offset_top = -4.0
offset_right = 77.0
offset_bottom = 4.0
color = Color(0.133333, 0.133333, 0.133333, 1)
[node name="Node2D2" type="Node2D" parent="Body"]
z_index = 10
z_as_relative = false
[node name="TextureRect" type="TextureRect" parent="Body/Node2D2"]
offset_left = -10.0
offset_top = -12.0
offset_right = 70.0
offset_bottom = 12.0
texture = ExtResource("3")