[gd_scene load_steps=19 format=2]

[ext_resource path="res://scripts/level_1.gd" type="Script" id=1]
[ext_resource path="res://scripts/player_car.gd" type="Script" id=2]
[ext_resource path="res://sprites/strip.png" type="Texture" id=3]
[ext_resource path="res://sprites/middle_road_part.png" type="Texture" id=4]
[ext_resource path="res://audio/sounds/shot.wav" type="AudioStream" id=5]
[ext_resource path="res://sprites/road.png" type="Texture" id=6]
[ext_resource path="res://sprites/cars.png" type="Texture" id=7]
[ext_resource path="res://sprites/road_part.png" type="Texture" id=8]
[ext_resource path="res://scenes/pause_menu.tscn" type="PackedScene" id=9]
[ext_resource path="res://scenes/effect.tscn" type="PackedScene" id=10]
[ext_resource path="res://scenes/fader.tscn" type="PackedScene" id=11]
[ext_resource path="res://scripts/gul.gd" type="Script" id=16]

[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.827451, 0.827451, 0.196078, 1 )

[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0.94902, 0.396078, 0.396078, 1 )

[sub_resource type="StyleBoxFlat" id=3]
bg_color = Color( 1, 1, 1, 1 )

[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.168627, 0.168627, 0.168627, 1 )

[sub_resource type="Animation" id=5]
length = 0.32
loop = true
step = 0.04
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.04, 0.08, 0.12, 0.16, 0.2, 0.24 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ Vector2( 0, 0 ), Vector2( 0, 1 ), Vector2( 0, 2 ), Vector2( 0, 3 ), Vector2( 0, 4 ), Vector2( 0, 5 ), Vector2( 0, 6 ) ]
}

[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 1.5, 2 )

[node name="level_1" type="Node2D"]
script = ExtResource( 1 )

[node name="gul" type="Node" parent="."]
pause_mode = 2
script = ExtResource( 16 )
normal_label_color = Color( 0.827451, 0.827451, 0.196078, 1 )
hover_label_color = Color( 0.168627, 0.168627, 0.168627, 1 )

[node name="fuelbar" type="ProgressBar" parent="gul"]
margin_left = 31.0
margin_top = 32.0
margin_right = 47.0
margin_bottom = 33.0
rect_rotation = -89.9999
custom_styles/fg = SubResource( 1 )
custom_styles/bg = SubResource( 2 )
max_value = 16.0
step = 1.0
value = 16.0
percent_visible = false
__meta__ = {
"_edit_use_anchors_": false
}

[node name="racebar" type="ProgressBar" parent="gul"]
margin_left = 31.0
margin_top = 16.0
margin_right = 47.0
margin_bottom = 17.0
rect_rotation = 270.0
custom_styles/fg = SubResource( 3 )
custom_styles/bg = SubResource( 4 )
max_value = 16.0
step = 1.0
percent_visible = false
__meta__ = {
"_edit_use_anchors_": false
}

[node name="pause_menu" parent="gul" instance=ExtResource( 9 )]

[node name="bg" type="Sprite" parent="."]
z_index = -2
texture = ExtResource( 6 )
centered = false

[node name="road" type="Node2D" parent="."]
position = Vector2( 0, 5 )

[node name="road_part_right" type="Sprite" parent="road"]
position = Vector2( 27, -8 )
texture = ExtResource( 8 )
centered = false
flip_h = true

[node name="road_part_left" type="Sprite" parent="road"]
position = Vector2( 2, -8 )
texture = ExtResource( 8 )
centered = false

[node name="middle_road_part" type="Sprite" parent="road/road_part_left"]
show_behind_parent = true
position = Vector2( 0, 20 )
scale = Vector2( 27, 1 )
z_index = -1
texture = ExtResource( 4 )
offset = Vector2( 0.5, 0 )

[node name="strip" type="Sprite" parent="road"]
visible = false
position = Vector2( 15, -8 )
texture = ExtResource( 3 )
centered = false

[node name="double_strip" type="Node2D" parent="road"]
position = Vector2( 0, 24 )

[node name="strip_left" type="Sprite" parent="road/double_strip"]
position = Vector2( 11, -32 )
texture = ExtResource( 3 )
centered = false

[node name="strip_right" type="Sprite" parent="road/double_strip"]
position = Vector2( 19, -32 )
texture = ExtResource( 3 )
centered = false

[node name="anim" type="AnimationPlayer" parent="road"]
autoplay = "road"
playback_speed = 3.0
method_call_mode = 1
anims/road = SubResource( 5 )

[node name="player" type="Area2D" parent="."]
position = Vector2( 14, 24 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 2 )

[node name="sprite" type="Sprite" parent="player"]
texture = ExtResource( 7 )
centered = false
hframes = 3

[node name="coll" type="CollisionShape2D" parent="player"]
position = Vector2( 1.5, 2 )
shape = SubResource( 6 )

[node name="hit" type="AudioStreamPlayer" parent="player"]
stream = ExtResource( 5 )

[node name="fuel_time" type="Timer" parent="player"]
wait_time = 3.0
one_shot = true

[node name="effect" parent="." instance=ExtResource( 10 )]

[node name="fader" parent="." instance=ExtResource( 11 )]
pause_mode = 2
z_index = 3
z_as_relative = false
