112 lines
4.0 KiB
Plaintext
112 lines
4.0 KiB
Plaintext
[gd_scene load_steps=13 format=2]
|
|
|
|
[ext_resource path="res://TileMap2.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="Curve2D" id=1]
|
|
_data = {
|
|
"points": PoolVector2Array( 0, 0, 0, 0, 480.755, 160.968, -44.1176, -1.2605, 44.1176, 1.2605, 684, 160.042, 0, 0, 0, 0, 759.607, 207.133, 0, -74.5098, 0, 74.5098, 769.296, 303.494, 0.926585, -49.109, -0.926585, 49.109, 768.41, 373.455, 31.9672, -0.926585, -31.9672, 0.926585, 708.312, 430.479, 0, 0, 0, 0, 572.437, 428.124, 6.46179, -42.6478, -6.46179, 42.6478, 517.286, 470.208, 0, 0, 0, 0, 513.409, 733.849, 76.2492, 0, -76.2492, 0, 447.99, 810.7, 0, 0, 0, 0, 382.881, 731.264, 0, 52.9867, 0, -52.9867, 384.173, 475.378, 0, 0, 0, 0, 329.971, 426.614, 13.9668, 1.39668, -13.9668, -1.39668, 184.018, 428.709, 1.39668, 43.297, -1.39668, -43.297, 121.023, 363.376, 0.814508, 29.1703, -0.814508, -29.1703, 118.928, 292.145, -63.5488, 1.39668, 63.5488, -1.39668, 182.477, 159.461, 0, 0, 0, 0, 304.658, 160.902, 0, 0, 0, 0, 480.755, 161.631 )
|
|
}
|
|
|
|
[sub_resource type="Gradient" id=3]
|
|
colors = PoolColorArray( 0.242729, 0.410156, 0.128174, 1, 0.088892, 0.507812, 0.0753784, 1 )
|
|
|
|
[sub_resource type="GradientTexture" id=4]
|
|
gradient = SubResource( 3 )
|
|
|
|
[sub_resource type="DynamicFont" id=5]
|
|
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( 928.559, 184.278 )
|
|
rotation = -0.013337
|
|
|
|
[node name="PlayerCar" parent="RaceTrack/TrackPlayer" instance=ExtResource( 3 )]
|
|
position = Vector2( 0, -22.892 )
|
|
scale = Vector2( 0.25, 0.25 )
|
|
skin = "car"
|
|
|
|
[node name="Track" type="Path2D" parent="."]
|
|
position = Vector2( 447.804, 23.3101 )
|
|
z_index = 2
|
|
curve = SubResource( 1 )
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
layer = -1
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="CanvasLayer"]
|
|
margin_right = 1923.0
|
|
margin_bottom = 1084.0
|
|
texture = ExtResource( 4 )
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="CanvasLayer"]
|
|
layer = -1
|
|
|
|
[node name="TextureRect2" type="TextureRect" parent="CanvasLayer/CanvasLayer"]
|
|
margin_right = 1923.0
|
|
margin_bottom = 1080.0
|
|
texture = SubResource( 4 )
|
|
expand = true
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
margin_left = 11.2102
|
|
margin_top = 57.7727
|
|
margin_right = 159.21
|
|
margin_bottom = 107.773
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer"]
|
|
margin_top = 18.0
|
|
margin_right = 53.0
|
|
margin_bottom = 32.0
|
|
text = "Rotation"
|
|
|
|
[node name="Rotation" type="Label" parent="HBoxContainer"]
|
|
margin_left = 57.0
|
|
margin_top = 18.0
|
|
margin_right = 71.0
|
|
margin_bottom = 32.0
|
|
text = "0°"
|
|
|
|
[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( 5 )
|
|
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"]
|