update to godot 4.4.1 and add rounds selection to config
This commit is contained in:
parent
3bbbbf7567
commit
921db0e9eb
19 changed files with 74 additions and 68 deletions
|
@ -12,7 +12,7 @@ config_version=5
|
|||
|
||||
config/name="One-Button Racing"
|
||||
run/main_scene="res://scenes/menu.tscn"
|
||||
config/features=PackedStringArray("4.3", "Forward Plus")
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[autoload]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=51 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="Script" uid="uid://bft67fimys37h" path="res://scripts/car_node.gd" id="1_0tin3"]
|
||||
[ext_resource type="Script" uid="uid://byf0k6sjqwucg" 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" uid="uid://cg0gkwdditjjp" path="res://scripts/tiretrails.gd" id="5_4geqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkg8e3stos5rw" path="res://sprites/bobbycar_steeringwheel.png" id="5_swfp0"]
|
||||
[ext_resource type="Script" path="res://scripts/label_round.gd" id="5_vheit"]
|
||||
[ext_resource type="Script" uid="uid://drd8en47kth23" 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"]
|
||||
|
@ -21,7 +21,7 @@
|
|||
[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="Script" uid="uid://d3o3tt4x2vjln" 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"]
|
||||
|
@ -84,8 +84,8 @@ tracks/0/keys = {
|
|||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55lyd"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_3soig"),
|
||||
"show_rounds": SubResource("Animation_wl2vo")
|
||||
&"RESET": SubResource("Animation_3soig"),
|
||||
&"show_rounds": SubResource("Animation_wl2vo")
|
||||
}
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_0d1y1"]
|
||||
|
@ -216,7 +216,7 @@ script = ExtResource("5_vheit")
|
|||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody_Car"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_55lyd")
|
||||
&"": SubResource("AnimationLibrary_55lyd")
|
||||
}
|
||||
|
||||
[node name="Enginesound" parent="CharacterBody_Car" instance=ExtResource("6_v21se")]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dl7r8s5sxyvlw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enginesound.gd" id="1_1xhsl"]
|
||||
[ext_resource type="Script" uid="uid://dqag2j5d0uqu6" path="res://scripts/enginesound.gd" id="1_1xhsl"]
|
||||
|
||||
[sub_resource type="AudioStreamGenerator" id="AudioStreamGenerator_kj4va"]
|
||||
buffer_length = 0.05
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=18 format=3 uid="uid://cotth8e5rtioe"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/game.gd" id="1_7syh4"]
|
||||
[ext_resource type="Script" path="res://scripts/times.gd" id="2_80mhm"]
|
||||
[ext_resource type="Script" uid="uid://d1q0abyr2mlcd" path="res://scripts/game.gd" id="1_7syh4"]
|
||||
[ext_resource type="Script" uid="uid://c8hsnjn5eut6e" path="res://scripts/times.gd" id="2_80mhm"]
|
||||
[ext_resource type="AudioStream" uid="uid://cdricwi06nttp" path="res://sounds/beep/countdown_beep_high.mp3" id="3_fdp2i"]
|
||||
[ext_resource type="AudioStream" uid="uid://v3eqa857k2xo" path="res://sounds/beep/countdown_beep.mp3" id="3_fv4j3"]
|
||||
|
||||
|
@ -65,9 +65,9 @@ resource_name = "normal"
|
|||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dbd4v"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_fgk0n"),
|
||||
"fast": SubResource("Animation_2q66f"),
|
||||
"normal": SubResource("Animation_52fxl")
|
||||
&"RESET": SubResource("Animation_fgk0n"),
|
||||
&"fast": SubResource("Animation_2q66f"),
|
||||
&"normal": SubResource("Animation_52fxl")
|
||||
}
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e0d0g"]
|
||||
|
@ -200,7 +200,7 @@ tracks/0/keys = {
|
|||
"times": PackedFloat32Array(0, 0.7, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(92.1386, 36.868), Vector2(120, 36.868), Vector2(480, 72)]
|
||||
"values": [Vector2(92.1386, 36.868), Vector2(120, 36.868), Vector2(330, 72)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
|
@ -264,8 +264,7 @@ tracks/1/keys = {
|
|||
"times": PackedFloat32Array(0, 1, 2, 3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": ["3", "2
|
||||
", "1", "Go!"]
|
||||
"values": ["3", "2", "1", "Go!"]
|
||||
}
|
||||
tracks/2/type = "method"
|
||||
tracks/2/imported = false
|
||||
|
@ -351,10 +350,10 @@ tracks/1/keys = {
|
|||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wuihg"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_ph30r"),
|
||||
"game_end": SubResource("Animation_gjxtp"),
|
||||
"game_start": SubResource("Animation_5vgpy"),
|
||||
"show_splittime": SubResource("Animation_60fqb")
|
||||
&"RESET": SubResource("Animation_ph30r"),
|
||||
&"game_end": SubResource("Animation_gjxtp"),
|
||||
&"game_start": SubResource("Animation_5vgpy"),
|
||||
&"show_splittime": SubResource("Animation_60fqb")
|
||||
}
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
@ -365,7 +364,7 @@ script = ExtResource("1_7syh4")
|
|||
[node name="carpreset_animations" type="AnimationPlayer" parent="hud"]
|
||||
root_node = NodePath("../..")
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_dbd4v")
|
||||
&"": SubResource("AnimationLibrary_dbd4v")
|
||||
}
|
||||
|
||||
[node name="label_fast" type="Label" parent="hud/carpreset_animations"]
|
||||
|
@ -473,16 +472,17 @@ anchor_right = 0.5
|
|||
anchor_bottom = 0.5
|
||||
offset_left = -483.861
|
||||
offset_top = -287.132
|
||||
offset_right = -354.861
|
||||
offset_right = -148.861
|
||||
offset_bottom = -173.132
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = SubResource("Theme_lsv84")
|
||||
alignment = 1
|
||||
script = ExtResource("2_80mhm")
|
||||
|
||||
[node name="game_hud_animations" type="AnimationPlayer" parent="hud"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_wuihg")
|
||||
&"": SubResource("AnimationLibrary_wuihg")
|
||||
}
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[gd_scene load_steps=36 format=3 uid="uid://bu1m43nyf4ys8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://csknopg1cbqbq" path="res://sprites/background/green_gradient.png" id="1_01a82"]
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_7xl02"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_7xl02"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_fr1tj"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="3_pbq8s"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="3_pbq8s"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_s7foq"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_g15mv"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_g15mv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_2dfn4"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdpm76vsgrpc0" path="res://sprites/smooth_fields/fields_animal_002.png" id="6_61lnv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bn31voko78y3i" path="res://sprites/smooth_fields/fields_bush_001.png" id="6_u22tk"]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=35 format=3 uid="uid://cxj0xsy7clbrt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dh437eqwliuu1" path="res://sprites/background/desert_gradient.png" id="1_hn21d"]
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_rmyo5"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_rmyo5"]
|
||||
[ext_resource type="Texture2D" uid="uid://ba7g1ewwchn6c" path="res://sprites/smooth_fields/fields_animal_001.png" id="2_08by0"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_r66hk"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="3_s3rd6"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="3_s3rd6"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_8dt2b"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_pu6fv"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_pu6fv"]
|
||||
[ext_resource type="Texture2D" uid="uid://2iy70pq6wvrt" path="res://sprites/desert/desert_cactus_001.png" id="6_m3am2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_yxqi8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cowu84p6mdr71" path="res://sprites/desert/desert_cactus_002.png" id="7_6y4v3"]
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
[gd_scene load_steps=28 format=3 uid="uid://bwtvxy6hryc4u"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_v25kt"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_v25kt"]
|
||||
[ext_resource type="Texture2D" uid="uid://csknopg1cbqbq" path="res://sprites/background/green_gradient.png" id="1_y1cwa"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_8k47d"]
|
||||
[ext_resource type="Texture2D" uid="uid://c0ss6dp7hba8j" path="res://sprites/smooth_fields/fields_flower_011.png" id="2_jpevj"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="3_ibujf"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="3_ibujf"]
|
||||
[ext_resource type="Texture2D" uid="uid://dmno1fargtbjv" path="res://sprites/smooth_fields/fields_flower_014.png" id="3_vn8si"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_gp7du"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcyf52kneoo3t" path="res://sprites/smooth_fields/fields_flower_016.png" id="4_px8ei"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_vurbe"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_vurbe"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_6cnvq"]
|
||||
[ext_resource type="Texture2D" uid="uid://crb12ld3cl3lu" path="res://sprites/road/finishline.png" id="7_1s8ny"]
|
||||
[ext_resource type="Texture2D" uid="uid://bn31voko78y3i" path="res://sprites/smooth_fields/fields_bush_001.png" id="8_4etr5"]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=34 format=3 uid="uid://bp3hpwhldy2rn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dh437eqwliuu1" path="res://sprites/background/desert_gradient.png" id="1_ck4s5"]
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_kc7uh"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_kc7uh"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_0ms3p"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_kby5d"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_65xy1"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_65xy1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_3qep6"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Texture2D" uid="uid://crb12ld3cl3lu" path="res://sprites/road/finishline.png" id="7_i2bpy"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3eind2bieqfj" path="res://sprites/desert/desert_spikyplant_001.png" id="10_8hhju"]
|
||||
[ext_resource type="Texture2D" uid="uid://cogcsvywxqfor" path="res://sprites/desert/desert_spikyplant_002.png" id="11_6ermr"]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=37 format=3 uid="uid://bilsj1h72s23a"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_cg3k6"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_cg3k6"]
|
||||
[ext_resource type="Texture2D" uid="uid://csknopg1cbqbq" path="res://sprites/background/green_gradient.png" id="2_mev6t"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="3_q2khr"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="5_xsnl8"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Texture2D" uid="uid://ba7g1ewwchn6c" path="res://sprites/smooth_fields/fields_animal_001.png" id="6_c655a"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="6_x0jfh"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="6_x0jfh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdpm76vsgrpc0" path="res://sprites/smooth_fields/fields_animal_002.png" id="7_frdrh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bn31voko78y3i" path="res://sprites/smooth_fields/fields_bush_001.png" id="9_cssop"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwow1hv3be0gh" path="res://sprites/smooth_fields/fields_bush_002.png" id="10_y6sb7"]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=36 format=3 uid="uid://c3bc2y1kqhboa"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_cowj0"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_cowj0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dh437eqwliuu1" path="res://sprites/background/desert_gradient.png" id="1_un1r6"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="3_mivmq"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="4_8hrwh"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="4_8hrwh"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="5_5a0eo"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_bauvc"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="6_vdo8x"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="6_vdo8x"]
|
||||
[ext_resource type="Texture2D" uid="uid://crb12ld3cl3lu" path="res://sprites/road/finishline.png" id="7_cyh48"]
|
||||
[ext_resource type="Texture2D" uid="uid://coodxt0qrcw57" path="res://sprites/desert/desert_pyramid_001.png" id="8_s11ym"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkfr440vx31jh" path="res://sprites/desert/desert_pyramid_002.png" id="9_ou266"]
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[gd_scene load_steps=23 format=3 uid="uid://ccy3rfrd1jpg1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://csknopg1cbqbq" path="res://sprites/background/green_gradient.png" id="1_wo3gb"]
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_y50df"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_y50df"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_2ey0t"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="3_yxc3j"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="3_yxc3j"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_lutxb"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_weemp"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_weemp"]
|
||||
[ext_resource type="Texture2D" uid="uid://ba7g1ewwchn6c" path="res://sprites/smooth_fields/fields_animal_001.png" id="6_mbvo3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_vt0h1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdpm76vsgrpc0" path="res://sprites/smooth_fields/fields_animal_002.png" id="7_6ssj3"]
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://b8e6unjutl5bb"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://csknopg1cbqbq" path="res://sprites/background/green_gradient.png" id="1_1q1bt"]
|
||||
[ext_resource type="Script" path="res://scripts/map_settings.gd" id="1_4kvv2"]
|
||||
[ext_resource type="Script" uid="uid://ct2a8b6fj4phj" path="res://scripts/map_settings.gd" id="1_4kvv2"]
|
||||
[ext_resource type="Texture2D" uid="uid://5l1t6nyjn022" path="res://sprites/road/road_border.png" id="2_3n7v7"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="3_i3pho"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="3_i3pho"]
|
||||
[ext_resource type="Texture2D" uid="uid://gydxil7qf7jc" path="res://sprites/road/road_trim.png" id="4_1s1xa"]
|
||||
[ext_resource type="Script" path="res://scripts/generate_road_polyon.gd" id="5_mb5tb"]
|
||||
[ext_resource type="Script" uid="uid://hjnf4en27k1o" path="res://scripts/generate_road_polyon.gd" id="5_mb5tb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bu1vuswjdjub3" path="res://sprites/road/road_startmarker.png" id="6_tm0js"]
|
||||
[ext_resource type="Texture2D" uid="uid://crb12ld3cl3lu" path="res://sprites/road/finishline.png" id="7_ocekn"]
|
||||
[ext_resource type="Texture2D" uid="uid://do3gd2qodpq66" path="res://sprites/road/checkpoint.png" id="8_osfw4"]
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
[ext_resource type="Texture2D" uid="uid://bu05e161cb61k" path="res://sprites/background/spritesheet_bg.png" id="1_m3cjb"]
|
||||
[ext_resource type="TileSet" uid="uid://buu8w8n61kbxf" path="res://sprites/spritesheet_road/markings.tres" id="3_xmt4t"]
|
||||
[ext_resource type="Texture2D" uid="uid://f07emh5nd432" path="res://upload_90656c517c9d3b6045c12e343446b97c.png" id="3_ytr3a"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvkrjllwsen6r" path="res://sprites/htrohr/ht_rohr.png" id="4_46p8j"]
|
||||
[ext_resource type="Texture2D" uid="uid://dpuhee0x5ekud" path="res://sprites/background/spritesheet_scenery.png" id="5_unub2"]
|
||||
[ext_resource type="Script" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Script" uid="uid://bm4x3mtvdtb0w" path="res://scripts/roadborder.gd" id="6_50nf2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bal4r8rnh38dx" path="res://sprites/htrohr/ht_rohr_fitting.png" id="6_lu60n"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0h14qq3jgbcw" path="res://sprites/htrohr/weights.png" id="7_7xqft"]
|
||||
|
||||
|
@ -49,6 +48,9 @@ texture_region_size = Vector2i(256, 256)
|
|||
tile_size = Vector2i(256, 256)
|
||||
sources/1 = SubResource("TileSetAtlasSource_hemvv")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ncnur"]
|
||||
metadata/__load_path__ = "res://upload_90656c517c9d3b6045c12e343446b97c.png"
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_daqun"]
|
||||
size = Vector2(23, 327)
|
||||
|
||||
|
@ -212,7 +214,7 @@ visible = false
|
|||
position = Vector2(30, -363)
|
||||
rotation = -3.14159
|
||||
scale = Vector2(2.09269, 2.09269)
|
||||
texture = ExtResource("3_ytr3a")
|
||||
texture = SubResource("Resource_ncnur")
|
||||
|
||||
[node name="Line2D_right_inside" type="Line2D" parent="."]
|
||||
z_index = 1
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[gd_scene load_steps=22 format=3 uid="uid://b1uhymisifcho"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_fushn"]
|
||||
[ext_resource type="Script" path="res://scripts/menudisplay.gd" id="2_jc4pv"]
|
||||
[ext_resource type="Script" path="res://scripts/map_selection.gd" id="3_c0mhk"]
|
||||
[ext_resource type="Script" uid="uid://sngr878yi4e2" path="res://scripts/menu.gd" id="1_fushn"]
|
||||
[ext_resource type="Script" uid="uid://5j77s0sni4jr" path="res://scripts/menudisplay.gd" id="2_jc4pv"]
|
||||
[ext_resource type="Script" uid="uid://ca808u31gy4rd" path="res://scripts/map_selection.gd" id="3_c0mhk"]
|
||||
[ext_resource type="Texture2D" uid="uid://my0glsan1h2e" path="res://scenes/map_preview/map_00.png" id="3_p822h"]
|
||||
[ext_resource type="Texture2D" uid="uid://bk32usoetq3b" path="res://scenes/map_preview/map_01.png" id="4_ac8w4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dojj5iqges76q" path="res://sprites/bobbycar_body.png" id="5_4c5nu"]
|
||||
[ext_resource type="Texture2D" uid="uid://ole07xte1dxp" path="res://scenes/map_preview/map_02.png" id="5_pnyq7"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5rlo1fhm3bl4" path="res://sprites/bobbycar_features.png" id="6_wj8p2"]
|
||||
[ext_resource type="Texture2D" uid="uid://btol62ajcio85" path="res://scenes/map_preview/map_03.png" id="7_5f67q"]
|
||||
[ext_resource type="Script" path="res://scripts/rounds_selection.gd" id="7_cr4tq"]
|
||||
[ext_resource type="Script" uid="uid://i2rjudao77vi" path="res://scripts/rounds_selection.gd" id="7_cr4tq"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkg8e3stos5rw" path="res://sprites/bobbycar_steeringwheel.png" id="7_duvwv"]
|
||||
[ext_resource type="Texture2D" uid="uid://dku8jinmijays" path="res://scenes/map_preview/map_04.png" id="8_46b6b"]
|
||||
[ext_resource type="Texture2D" uid="uid://mp5f6jviyl44" path="res://scenes/map_preview/map_05.png" id="10_cou7n"]
|
||||
|
@ -67,8 +67,8 @@ tracks/0/keys = {
|
|||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_08km3"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_7lydi"),
|
||||
"menu_idle": SubResource("Animation_y58ke")
|
||||
&"RESET": SubResource("Animation_7lydi"),
|
||||
&"menu_idle": SubResource("Animation_y58ke")
|
||||
}
|
||||
|
||||
[node name="Menu" type="Node"]
|
||||
|
@ -378,6 +378,7 @@ offset_right = 732.0
|
|||
offset_bottom = 587.0
|
||||
item_count = 5
|
||||
popup/item_0/text = "1"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "2"
|
||||
popup/item_1/id = 1
|
||||
popup/item_2/text = "3"
|
||||
|
@ -399,7 +400,7 @@ text = "Rounds:"
|
|||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="MenuDisplay"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_08km3")
|
||||
&"": SubResource("AnimationLibrary_08km3")
|
||||
}
|
||||
autoplay = "menu_idle"
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ func _ready() -> void:
|
|||
config.set_value("general", "remove_cars_timeout", 15)
|
||||
config.set_value("general", "automatic_map_change_after", 2)
|
||||
config.set_value("general", "fast_mode_chance", 0.0)
|
||||
config.set_value("general", "rounds", 3)
|
||||
|
||||
|
||||
config.save(SETTINGS_FILE_PATH)
|
||||
else:
|
||||
|
|
|
@ -14,7 +14,7 @@ var map_scene_path_prefix="res://scenes/"
|
|||
var map_scene_name_prefix="map_"
|
||||
var map_scene_name_postfix=".tscn"
|
||||
|
||||
var rounds=3
|
||||
var rounds:int=0 #if 0, load from file
|
||||
|
||||
var carpreset="normal"
|
||||
|
||||
|
@ -33,11 +33,16 @@ func setFastModeChance(v:float):
|
|||
func getFastModeChance():
|
||||
return fast_mode_chance
|
||||
|
||||
func getRounds():
|
||||
func getRounds() -> int:
|
||||
if rounds<=0: #if no rounds setting configured, use from config file
|
||||
var loadedRounds:int=ConfigFileHandler.get_general_setting("rounds")-1
|
||||
if loadedRounds>0:
|
||||
rounds=loadedRounds
|
||||
return rounds
|
||||
|
||||
func setRounds(r):
|
||||
print("Rounds set to "+str(r))
|
||||
ConfigFileHandler.save_general_setting("rounds",r)
|
||||
rounds=r
|
||||
|
||||
func getRemoveCarsTimeout():
|
||||
|
|
|
@ -29,6 +29,7 @@ func _ready():
|
|||
Gamestate.setColorwheelstepByPlayernum(keywhitelist.size())
|
||||
|
||||
|
||||
|
||||
#playeroverridecolors=ConfigFileHandler.get_playeroverridecolors_setting()
|
||||
#print("playeroverridecolors="+str(playeroverridecolors))
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ func _ready() -> void:
|
|||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func updateCountdown(t):
|
||||
func updateCountdown(t:int):
|
||||
if (t<0):
|
||||
$countdown.visible=false
|
||||
else:
|
||||
|
|
|
@ -3,13 +3,8 @@ extends OptionButton
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
var selectedRounds=Gamestate.getRounds()
|
||||
select(selectedRounds-1) #preselect rounds
|
||||
Gamestate.setRounds(selectedRounds)
|
||||
select(Gamestate.getRounds()-1)
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_item_selected(index: int) -> void:
|
||||
Gamestate.setRounds(index+1)
|
||||
print("Set rounds to "+str(index+1))
|
||||
|
|
Loading…
Add table
Reference in a new issue