putting together in Main scene
This commit is contained in:
57
Track2.tscn
57
Track2.tscn
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=13 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://TileMap2.gd" type="Script" id=1]
|
||||
[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]
|
||||
@@ -9,18 +9,13 @@
|
||||
[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]
|
||||
[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=4]
|
||||
gradient = SubResource( 3 )
|
||||
[sub_resource type="GradientTexture" id=2]
|
||||
gradient = SubResource( 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=5]
|
||||
[sub_resource type="DynamicFont" id=3]
|
||||
size = 13
|
||||
outline_size = 2
|
||||
outline_color = Color( 0.254902, 0.121569, 0.121569, 1 )
|
||||
@@ -38,55 +33,31 @@ 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
|
||||
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="Track" type="Path2D" parent="."]
|
||||
position = Vector2( 447.804, 23.3101 )
|
||||
z_index = 2
|
||||
curve = SubResource( 1 )
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="TrackImage" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer"]
|
||||
[node name="TextureRect" type="TextureRect" parent="TrackImage"]
|
||||
margin_right = 1923.0
|
||||
margin_bottom = 1084.0
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="CanvasLayer"]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="TrackImage"]
|
||||
layer = -1
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="CanvasLayer/CanvasLayer"]
|
||||
[node name="TextureRect2" type="TextureRect" parent="TrackImage/CanvasLayer"]
|
||||
margin_right = 1923.0
|
||||
margin_bottom = 1080.0
|
||||
texture = SubResource( 4 )
|
||||
texture = SubResource( 2 )
|
||||
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 )
|
||||
@@ -98,7 +69,7 @@ margin_right = 920.258
|
||||
margin_bottom = 431.587
|
||||
rect_rotation = -5.0
|
||||
rect_clip_content = true
|
||||
custom_fonts/font = SubResource( 5 )
|
||||
custom_fonts/font = SubResource( 3 )
|
||||
custom_colors/font_color = Color( 0.780392, 0.129412, 0.129412, 1 )
|
||||
text = "WRONG WAY !!"
|
||||
align = 1
|
||||
|
||||
Reference in New Issue
Block a user