[gd_scene load_steps=12 format=2]

[ext_resource path="res://TileMap.gd" type="Script" id=1]
[ext_resource path="res://RaceTrack.tscn" type="PackedScene" id=2]
[ext_resource path="res://PlayerCar.tscn" type="PackedScene" id=3]
[ext_resource path="res://track2/track.png" type="Texture" id=4]
[ext_resource path="res://Gui.tscn" type="PackedScene" id=5]
[ext_resource path="res://Gui.gd" type="Script" id=6]
[ext_resource path="res://Oswald-Bold.otf" type="DynamicFontData" id=7]
[ext_resource path="res://Wrong Way.gd" type="Script" id=8]

[sub_resource type="Gradient" id=1]
colors = PoolColorArray( 0.242729, 0.410156, 0.128174, 1, 0.088892, 0.507812, 0.0753784, 1 )

[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )

[sub_resource type="DynamicFont" id=3]
size = 13
outline_size = 2
outline_color = Color( 0.254902, 0.121569, 0.121569, 1 )
extra_spacing_char = 3
extra_spacing_space = 3
font_data = ExtResource( 7 )

[node name="Track2" type="Node2D"]

[node name="TileMap" type="TileMap" parent="."]
cell_size = Vector2( 128, 128 )
format = 1
script = ExtResource( 1 )

[node name="RaceTrack" parent="." instance=ExtResource( 2 )]

[node name="TrackPlayer" type="PathFollow2D" parent="RaceTrack"]
position = Vector2( -17.3556, 327.792 )
rotation = 0.0639077

[node name="PlayerCar" parent="RaceTrack/TrackPlayer" instance=ExtResource( 3 )]
position = Vector2( 0, -22.892 )
scale = Vector2( 0.25, 0.25 )
skin = "car"

[node name="TrackImage" type="CanvasLayer" parent="."]
layer = -1

[node name="TextureRect" type="TextureRect" parent="TrackImage"]
margin_right = 1923.0
margin_bottom = 1084.0
texture = ExtResource( 4 )

[node name="CanvasLayer" type="CanvasLayer" parent="TrackImage"]
layer = -1

[node name="TextureRect2" type="TextureRect" parent="TrackImage/CanvasLayer"]
margin_right = 1923.0
margin_bottom = 1080.0
texture = SubResource( 2 )
expand = true

[node name="GUI" parent="." instance=ExtResource( 5 )]
editor/display_folded = false
script = ExtResource( 6 )

[node name="Wrong Way" type="Label" parent="."]
margin_left = 792.258
margin_top = 303.587
margin_right = 920.258
margin_bottom = 431.587
rect_rotation = -5.0
rect_clip_content = true
custom_fonts/font = SubResource( 3 )
custom_colors/font_color = Color( 0.780392, 0.129412, 0.129412, 1 )
text = "WRONG WAY !!"
align = 1
valign = 1
script = ExtResource( 8 )
[connection signal="lap_completed" from="TileMap" to="GUI" method="_on_TileMap_lap_completed"]
[connection signal="player_moved" from="TileMap" to="RaceTrack/TrackPlayer/PlayerCar" method="_on_TileMap_player_moved"]
[connection signal="wrong_way" from="TileMap" to="Wrong Way" method="_on_TileMap_wrong_way"]

[editable path="GUI"]
