233 lines
11 KiB
Text
233 lines
11 KiB
Text
[gd_scene load_steps=50 format=3 uid="uid://0g7qqh7naniv"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/car_node.gd" id="1_0tin3"]
|
|
[ext_resource type="Script" path="res://scripts/car.gd" id="1_i5tet"]
|
|
[ext_resource type="Texture2D" uid="uid://c5rlo1fhm3bl4" path="res://sprites/bobbycar_features.png" id="3_k2wmt"]
|
|
[ext_resource type="Texture2D" uid="uid://dojj5iqges76q" path="res://sprites/bobbycar_body.png" id="4_2gwtk"]
|
|
[ext_resource type="Script" path="res://scripts/tiretrails.gd" id="5_4geqi"]
|
|
[ext_resource type="Script" path="res://scripts/label_round.gd" id="5_vheit"]
|
|
[ext_resource type="PackedScene" uid="uid://dilif5od0ipli" path="res://scenes/burnout.tscn" id="6_nxxrr"]
|
|
[ext_resource type="PackedScene" uid="uid://dl7r8s5sxyvlw" path="res://scenes/enginesound.tscn" id="6_v21se"]
|
|
[ext_resource type="AudioStream" uid="uid://dq5rei2w1isu4" path="res://sounds/crash/Car_Crash_01.mp3" id="7_7erwn"]
|
|
[ext_resource type="AudioStream" uid="uid://c80nrd7syf2do" path="res://sounds/crash/Car_Crash_02.mp3" id="8_v77t5"]
|
|
[ext_resource type="AudioStream" uid="uid://bydtxr3k48668" path="res://sounds/crash/Car_Crash_11.mp3" id="9_whtvo"]
|
|
[ext_resource type="AudioStream" uid="uid://b8c1rvw6nt7o0" path="res://sounds/crash/Car_Crash_12.mp3" id="10_s183h"]
|
|
[ext_resource type="AudioStream" uid="uid://cf0dn7xccjkgd" path="res://sounds/crash/Car_Crash_03.mp3" id="11_kqq1y"]
|
|
[ext_resource type="AudioStream" uid="uid://c7wqkhy5u1a2q" path="res://sounds/crash/Car_Crash_04.mp3" id="12_bcbo2"]
|
|
[ext_resource type="AudioStream" uid="uid://ddnteyshxxrji" path="res://sounds/crash/Car_Crash_05.mp3" id="13_lyjoi"]
|
|
[ext_resource type="AudioStream" uid="uid://b4kmui4p66tk8" path="res://sounds/crash/Car_Crash_06.mp3" id="14_7y683"]
|
|
[ext_resource type="AudioStream" uid="uid://dv51q2l17ck08" path="res://sounds/crash/Car_Crash_07.mp3" id="15_sm1v5"]
|
|
[ext_resource type="AudioStream" uid="uid://bw64pl0a24hh1" path="res://sounds/crash/Car_Crash_08.mp3" id="16_7cb5n"]
|
|
[ext_resource type="AudioStream" uid="uid://1txhc7kv6hmt" path="res://sounds/crash/Car_Crash_09.mp3" id="17_44mic"]
|
|
[ext_resource type="AudioStream" uid="uid://dw2mxaef28o8q" path="res://sounds/crash/Car_Crash_10.mp3" id="18_poxqa"]
|
|
[ext_resource type="Script" path="res://scripts/sfx.gd" id="19_85lmo"]
|
|
[ext_resource type="AudioStream" uid="uid://w27a31rx438n" path="res://sounds/crashcartocar/carToCarCrash_1.mp3" id="20_i46w7"]
|
|
[ext_resource type="AudioStream" uid="uid://jxtl6bre86fe" path="res://sounds/crashcartocar/carToCarCrash_2.mp3" id="21_ijxir"]
|
|
[ext_resource type="AudioStream" uid="uid://f8h6ilj36le0" path="res://sounds/crashcartocar/carToCarCrash_11.mp3" id="22_2dot5"]
|
|
[ext_resource type="AudioStream" uid="uid://n7bh6g7timbp" path="res://sounds/crashcartocar/carToCarCrash_3.mp3" id="23_siegc"]
|
|
[ext_resource type="AudioStream" uid="uid://4j3l651ytali" path="res://sounds/crashcartocar/carToCarCrash_4.mp3" id="24_8bkwl"]
|
|
[ext_resource type="AudioStream" uid="uid://7e0drsxkly2o" path="res://sounds/crashcartocar/carToCarCrash_5.mp3" id="25_udtw5"]
|
|
[ext_resource type="AudioStream" uid="uid://dhmlx1qcbfaqd" path="res://sounds/crashcartocar/carToCarCrash_6.mp3" id="26_54swc"]
|
|
[ext_resource type="AudioStream" uid="uid://rj6yk6iyto40" path="res://sounds/crashcartocar/carToCarCrash_7.mp3" id="27_ei7lh"]
|
|
[ext_resource type="AudioStream" uid="uid://bgsq7fchoqj8v" path="res://sounds/crashcartocar/carToCarCrash_8.mp3" id="28_esp4o"]
|
|
[ext_resource type="AudioStream" uid="uid://cfqcw2mha2yp2" path="res://sounds/crashcartocar/carToCarCrash_9.mp3" id="29_b0wo4"]
|
|
[ext_resource type="AudioStream" uid="uid://t0b8lpb7dtxe" path="res://sounds/crashcartocar/carToCarCrash_10.mp3" id="30_gtdxt"]
|
|
[ext_resource type="AudioStream" uid="uid://4g5dstft61qm" path="res://sounds/sliding_tires/sliding_1.mp3" id="31_q8dmo"]
|
|
[ext_resource type="AudioStream" uid="uid://dpf1q28plyv78" path="res://sounds/sliding_tires/sliding_2.mp3" id="32_e24hs"]
|
|
[ext_resource type="AudioStream" uid="uid://f7kjbgyro3wm" path="res://sounds/sliding_tires/sliding_3.mp3" id="33_t85wj"]
|
|
[ext_resource type="AudioStream" uid="uid://co3yviwjslvy3" path="res://sounds/sliding_tires/sliding_4.mp3" id="34_vggo2"]
|
|
[ext_resource type="AudioStream" uid="uid://diq4m6a8ptwsh" path="res://sounds/sliding_tires/sliding_5.mp3" id="35_on3l3"]
|
|
[ext_resource type="AudioStream" uid="uid://b6jics5gw71je" path="res://sounds/sliding_tires/sliding_6.mp3" id="36_kmjdq"]
|
|
[ext_resource type="AudioStream" uid="uid://b1ib5a0msbxtp" path="res://sounds/sliding_tires/sliding_7.mp3" id="37_dj0l2"]
|
|
[ext_resource type="AudioStream" uid="uid://cqtd0huwtmg6s" path="res://sounds/sliding_tires/sliding_8.mp3" id="38_uwebt"]
|
|
[ext_resource type="AudioStream" uid="uid://c86arger0uqdn" path="res://sounds/sliding_tires/sliding_9.mp3" id="39_4qf5g"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bj1hp"]
|
|
radius = 9.0
|
|
height = 34.0
|
|
|
|
[sub_resource type="Curve" id="Curve_qs34t"]
|
|
_data = [Vector2(0, 0), 0.0, 5.0, 0, 0, Vector2(0.5, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -5.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Animation" id="Animation_3soig"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("label_round:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_wl2vo"]
|
|
resource_name = "show_rounds"
|
|
length = 3.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("label_round:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.133333, 0.533333, 1.5, 2.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55lyd"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_3soig"),
|
|
"show_rounds": SubResource("Animation_wl2vo")
|
|
}
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_0d1y1"]
|
|
playback_mode = 1
|
|
random_pitch = 1.3
|
|
streams_count = 12
|
|
stream_0/stream = ExtResource("7_7erwn")
|
|
stream_1/stream = ExtResource("8_v77t5")
|
|
stream_2/stream = ExtResource("11_kqq1y")
|
|
stream_3/stream = ExtResource("12_bcbo2")
|
|
stream_4/stream = ExtResource("13_lyjoi")
|
|
stream_5/stream = ExtResource("14_7y683")
|
|
stream_6/stream = ExtResource("15_sm1v5")
|
|
stream_7/stream = ExtResource("16_7cb5n")
|
|
stream_8/stream = ExtResource("17_44mic")
|
|
stream_9/stream = ExtResource("18_poxqa")
|
|
stream_10/stream = ExtResource("9_whtvo")
|
|
stream_11/stream = ExtResource("10_s183h")
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_smwyg"]
|
|
random_pitch = 1.3
|
|
streams_count = 11
|
|
stream_0/stream = ExtResource("20_i46w7")
|
|
stream_1/stream = ExtResource("21_ijxir")
|
|
stream_2/stream = ExtResource("23_siegc")
|
|
stream_3/stream = ExtResource("24_8bkwl")
|
|
stream_4/stream = ExtResource("25_udtw5")
|
|
stream_5/stream = ExtResource("26_54swc")
|
|
stream_6/stream = ExtResource("27_ei7lh")
|
|
stream_7/stream = ExtResource("28_esp4o")
|
|
stream_8/stream = ExtResource("29_b0wo4")
|
|
stream_9/stream = ExtResource("30_gtdxt")
|
|
stream_10/stream = ExtResource("22_2dot5")
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_evs7n"]
|
|
playback_mode = 1
|
|
random_pitch = 1.25
|
|
streams_count = 9
|
|
stream_0/stream = ExtResource("31_q8dmo")
|
|
stream_1/stream = ExtResource("32_e24hs")
|
|
stream_2/stream = ExtResource("33_t85wj")
|
|
stream_3/stream = ExtResource("34_vggo2")
|
|
stream_4/stream = ExtResource("35_on3l3")
|
|
stream_5/stream = ExtResource("36_kmjdq")
|
|
stream_6/stream = ExtResource("37_dj0l2")
|
|
stream_7/stream = ExtResource("38_uwebt")
|
|
stream_8/stream = ExtResource("39_4qf5g")
|
|
|
|
[node name="Car" type="Node2D"]
|
|
script = ExtResource("1_0tin3")
|
|
|
|
[node name="CharacterBody_Car" type="CharacterBody2D" parent="."]
|
|
motion_mode = 1
|
|
script = ExtResource("1_i5tet")
|
|
|
|
[node name="sprite_features" type="Sprite2D" parent="CharacterBody_Car"]
|
|
z_index = 10
|
|
texture_filter = 1
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("3_k2wmt")
|
|
|
|
[node name="sprite_body" type="Sprite2D" parent="CharacterBody_Car"]
|
|
z_index = 10
|
|
texture_filter = 1
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("4_2gwtk")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody_Car"]
|
|
rotation = -1.57079
|
|
shape = SubResource("CapsuleShape2D_bj1hp")
|
|
|
|
[node name="PositionFrontLeftTire" type="Node2D" parent="CharacterBody_Car"]
|
|
position = Vector2(10, -7)
|
|
script = ExtResource("5_4geqi")
|
|
|
|
[node name="PositionFrontRightTire" type="Node2D" parent="CharacterBody_Car"]
|
|
position = Vector2(10, 7)
|
|
script = ExtResource("5_4geqi")
|
|
|
|
[node name="Burnout_Left" parent="CharacterBody_Car" instance=ExtResource("6_nxxrr")]
|
|
|
|
[node name="Burnout_Right" parent="CharacterBody_Car" instance=ExtResource("6_nxxrr")]
|
|
position = Vector2(-11, 7)
|
|
|
|
[node name="Line2D" type="Line2D" parent="CharacterBody_Car"]
|
|
width_curve = SubResource("Curve_qs34t")
|
|
|
|
[node name="RayCast_FL" type="RayCast2D" parent="CharacterBody_Car"]
|
|
target_position = Vector2(512, -256)
|
|
collision_mask = 2
|
|
|
|
[node name="RayCast_FR" type="RayCast2D" parent="CharacterBody_Car"]
|
|
target_position = Vector2(512, 256)
|
|
collision_mask = 2
|
|
|
|
[node name="resetTimer" type="Timer" parent="CharacterBody_Car"]
|
|
one_shot = true
|
|
|
|
[node name="RayCast_Car" type="RayCast2D" parent="CharacterBody_Car"]
|
|
position = Vector2(-15, 0)
|
|
target_position = Vector2(31, 0)
|
|
collision_mask = 12
|
|
collide_with_areas = true
|
|
|
|
[node name="collisionEnableTimer" type="Timer" parent="CharacterBody_Car"]
|
|
wait_time = 0.1
|
|
one_shot = true
|
|
|
|
[node name="label_round" type="Label" parent="CharacterBody_Car"]
|
|
z_index = 10
|
|
offset_left = -52.0
|
|
offset_top = -12.0
|
|
offset_right = -12.0
|
|
offset_bottom = 12.0
|
|
pivot_offset = Vector2(20, 12)
|
|
text = "3/3"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
script = ExtResource("5_vheit")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody_Car"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_55lyd")
|
|
}
|
|
|
|
[node name="Enginesound" parent="CharacterBody_Car" instance=ExtResource("6_v21se")]
|
|
|
|
[node name="SFX" type="Node" parent="CharacterBody_Car"]
|
|
script = ExtResource("19_85lmo")
|
|
|
|
[node name="SFXCrash" type="AudioStreamPlayer" parent="CharacterBody_Car/SFX"]
|
|
stream = SubResource("AudioStreamRandomizer_0d1y1")
|
|
bus = &"Crash"
|
|
|
|
[node name="SFXCrashCarToCar" type="AudioStreamPlayer" parent="CharacterBody_Car/SFX"]
|
|
stream = SubResource("AudioStreamRandomizer_smwyg")
|
|
pitch_scale = 1.27
|
|
max_polyphony = 2
|
|
bus = &"Crash"
|
|
|
|
[node name="SFXSliding" type="AudioStreamPlayer" parent="CharacterBody_Car/SFX"]
|
|
stream = SubResource("AudioStreamRandomizer_evs7n")
|
|
bus = &"Crash"
|
|
|
|
[connection signal="timeout" from="CharacterBody_Car/resetTimer" to="CharacterBody_Car" method="_on_reset_timer_timeout"]
|
|
[connection signal="timeout" from="CharacterBody_Car/collisionEnableTimer" to="CharacterBody_Car" method="_on_collision_enable_timer_timeout"]
|