-
Notifications
You must be signed in to change notification settings - Fork 1
/
Car.tscn
129 lines (106 loc) · 3.54 KB
/
Car.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[gd_scene load_steps=15 format=2]
[ext_resource path="res://scripts/Car.gd" type="Script" id=1]
[ext_resource path="res://assets/cars/car_blue_small_5.png" type="Texture" id=2]
[ext_resource path="res://assets/rubber.png" type="Texture" id=3]
[ext_resource path="res://scripts/Camera2D.gd" type="Script" id=4]
[ext_resource path="res://assets/smoke_01.png" type="Texture" id=5]
[ext_resource path="res://assets/sounds/SFX_Motor_Marauder_0006.ogg" type="AudioStream" id=6]
[ext_resource path="res://assets/sounds/SFX_Impacts_0214.ogg" type="AudioStream" id=7]
[ext_resource path="res://assets/sounds/SFX_Boost_Burnout_0001.ogg" type="AudioStream" id=8]
[sub_resource type="Gradient" id=1]
offsets = PoolRealArray( 0, 0.807407, 1 )
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 )
[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )
[sub_resource type="Curve" id=3]
_data = [ Vector2( 0, 0.143182 ), 0.0, 0.370674, 0, 0, Vector2( 1, 0.352273 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=4]
curve = SubResource( 3 )
[sub_resource type="ParticlesMaterial" id=5]
emission_shape = 2
emission_box_extents = Vector3( 1, 10, 1 )
flag_disable_z = true
spread = 180.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 10.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
angle = 360.0
angle_random = 1.0
scale_curve = SubResource( 4 )
color_ramp = SubResource( 2 )
[sub_resource type="CapsuleShape2D" id=6]
radius = 18.9999
height = 26.0001
[node name="car" type="KinematicBody2D" groups=[
"player",
]]
z_index = 5
collision_layer = 3
collision_mask = 3
script = ExtResource( 1 )
[node name="Fumes" type="Particles2D" parent="."]
position = Vector2( -18.3506, 0.0362377 )
z_index = -1
emitting = false
amount = 50
local_coords = false
process_material = SubResource( 5 )
texture = ExtResource( 5 )
[node name="Pivot" type="Position2D" parent="."]
[node name="body" type="Sprite" parent="Pivot"]
rotation = 1.5708
texture = ExtResource( 2 )
region_rect = Rect2( 0, 0, 350, 592 )
[node name="rubber_right" type="Sprite" parent="Pivot"]
position = Vector2( -18, 18 )
scale = Vector2( 0.5, 0.5 )
z_index = -1
texture = ExtResource( 3 )
[node name="rubber_left" type="Sprite" parent="Pivot"]
position = Vector2( -18, -18 )
scale = Vector2( 0.5, 0.5 )
z_index = -1
texture = ExtResource( 3 )
[node name="pivot_right" type="Position2D" parent="Pivot"]
position = Vector2( 15, 18 )
[node name="rubber" type="Sprite" parent="Pivot/pivot_right"]
scale = Vector2( 0.5, 0.5 )
z_index = -1
texture = ExtResource( 3 )
[node name="pivot_left" type="Position2D" parent="Pivot"]
position = Vector2( 15, -18 )
[node name="rubber" type="Sprite" parent="Pivot/pivot_left"]
scale = Vector2( 0.5, 0.5 )
z_index = -1
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
z_index = -1
shape = SubResource( 6 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
[node name="Camera2D" type="Camera2D" parent="."]
current = true
zoom = Vector2( 2, 2 )
limit_left = 0
limit_top = 0
limit_right = 16000
limit_bottom = 11000
drag_margin_left = 0.1
drag_margin_top = 0.1
drag_margin_right = 0.1
drag_margin_bottom = 0.1
editor_draw_limits = true
editor_draw_drag_margin = true
script = ExtResource( 4 )
[node name="Engine" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
volume_db = -10.0
autoplay = true
bus = "Sounds"
[node name="Tires" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 8 )
bus = "Sounds"
[node name="Thud" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
bus = "Sounds"