Made game work

This commit is contained in:
Segey Lapin
2019-10-19 16:35:36 +03:00
parent 53c8a3504f
commit 69410badf6
14 changed files with 506 additions and 463 deletions

View File

@@ -5,23 +5,23 @@
[ext_resource path="res://vehicles/cars/car_car1.tscn" type="PackedScene" id=3]
[ext_resource path="res://fonts/DroidSansFallback.ttf" type="DynamicFontData" id=4]
[sub_resource type="ProceduralSky" id=7]
[sub_resource type="ProceduralSky" id=1]
sky_energy = 0.7
sun_energy = 0.5
[sub_resource type="Environment" id=8]
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 7 )
background_sky = SubResource( 1 )
[sub_resource type="BoxShape" id=1]
[sub_resource type="BoxShape" id=3]
extents = Vector3( 100, 0.2, 100 )
[sub_resource type="CubeMesh" id=2]
[sub_resource type="CubeMesh" id=4]
size = Vector3( 8, 0.2, 300 )
subdivide_width = 4
subdivide_depth = 300
[sub_resource type="SpatialMaterial" id=3]
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 0.34902, 0.34902, 0.34902, 1 )
metallic = 0.1
roughness = 0.8
@@ -29,23 +29,23 @@ roughness = 0.8
[sub_resource type="BoxShape" id=6]
extents = Vector3( 2, 1, 8 )
[sub_resource type="SpatialMaterial" id=9]
[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.176471, 0.678431, 0.243137, 1 )
[sub_resource type="PlaneMesh" id=10]
material = SubResource( 9 )
[sub_resource type="PlaneMesh" id=8]
material = SubResource( 7 )
size = Vector2( 100, 300 )
subdivide_width = 200
subdivide_depth = 200
[sub_resource type="StyleBoxFlat" id=11]
[sub_resource type="StyleBoxFlat" id=9]
bg_color = Color( 1, 0, 0, 1 )
border_blend = true
[sub_resource type="StyleBoxFlat" id=12]
[sub_resource type="StyleBoxFlat" id=10]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
[sub_resource type="DynamicFont" id=13]
[sub_resource type="DynamicFont" id=11]
use_mipmaps = true
use_filter = true
font_data = ExtResource( 4 )
@@ -59,13 +59,13 @@ script = ExtResource( 2 )
target_path = NodePath("../cam")
[node name="Camera" type="Camera" parent="vehicle_camera"]
environment = SubResource( 8 )
environment = SubResource( 2 )
[node name="StaticBody" type="StaticBody" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )
shape = SubResource( 1 )
shape = SubResource( 3 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.990268, -0.134431, 0.0360206, 0, 0.258819, 0.965926, -0.139173, -0.956526, 0.2563, 0, 20, 0 )
@@ -79,8 +79,8 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0 )
[node name="road" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )
mesh = SubResource( 2 )
material/0 = SubResource( 3 )
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="Area" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.03741, 0, -80.0024 )
@@ -94,12 +94,12 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 0.4, 76.3702 )
[node name="ground" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -54, 0, 0 )
mesh = SubResource( 10 )
mesh = SubResource( 8 )
material/0 = null
[node name="ground2" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 54, 0, 0 )
mesh = SubResource( 10 )
mesh = SubResource( 8 )
material/0 = null
[node name="progress" type="ProgressBar" parent="."]
@@ -114,9 +114,9 @@ margin_bottom = -8.94751
rect_min_size = Vector2( 64, 64 )
size_flags_horizontal = 3
size_flags_vertical = 1
custom_styles/fg = SubResource( 11 )
custom_styles/bg = SubResource( 12 )
custom_fonts/font = SubResource( 13 )
custom_styles/fg = SubResource( 9 )
custom_styles/bg = SubResource( 10 )
custom_fonts/font = SubResource( 11 )
custom_colors/font_color = Color( 0, 0, 0, 0 )
custom_colors/font_color_shadow = Color( 0.564706, 0.109804, 0.109804, 0.384314 )
__meta__ = {