tweaked vehicle parameters, added lvl2, new sign, cchanged icon.svg

This commit is contained in:
Metzkermeister 2023-10-02 20:05:20 +02:00
parent 299d5fe09d
commit f792924234
7 changed files with 153 additions and 5 deletions

View file

@ -26,7 +26,7 @@ player = NodePath("player")
finish = NodePath("FinishLine")
menu = NodePath("CanvasLayer/menu_box/level")
[node name="TextureRect" type="TextureRect" parent="."]
[node name="Background" type="TextureRect" parent="."]
self_modulate = Color(0.827451, 0.521569, 0.313726, 1)
offset_left = -6505.0
offset_top = -3355.0

View file

@ -0,0 +1,103 @@
[gd_scene load_steps=11 format=3 uid="uid://c4dloid4y3of3"]
[ext_resource type="Script" path="res://src/game/levels/level.gd" id="1_ijrq0"]
[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="2_tghpu"]
[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="3_m80eb"]
[ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_1w2e5"]
[ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="5_4d0xw"]
[ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="6_tmqkf"]
[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="7_bv3bp"]
[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="9_vi54e"]
[ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://src/game/sign.tscn" id="10_q5p01"]
[sub_resource type="Curve2D" id="Curve2D_ll8bj"]
_data = {
"points": PackedVector2Array(-2802.31, 71.2753, 2802.31, -71.2753, 79, -9, 1265.43, 667.42, -1265.43, -667.42, 2775, -2219, -448.839, 1389.02, 448.839, -1389.02, 705, -4334, -1334.21, 639.09, 1334.21, -639.09, 4268, -4877, -1362.52, 285.604, 1362.52, -285.604, 5615, -7559, 42.3785, -1101.84, -42.3785, 1101.84, 8556, -1370, 3038.77, -38.3035, -3038.77, 38.3035, 2317, 1760, 497.722, 1407.91, -497.722, -1407.91, -2614, 1436, -46.8746, 2517.24, 46.8746, -2517.24, -5826, 207, -605.99, 25.7954, 605.99, -25.7954, 79, -9)
}
point_count = 10
[node name="level1" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")]
script = ExtResource("1_ijrq0")
starting_width = 400.0
shrink_factor = 5.0
path = NodePath("TrackPath")
line = NodePath("TrackLine")
player = NodePath("player")
finish = NodePath("FinishLine")
menu = NodePath("CanvasLayer/menu_box/level")
[node name="Background" type="TextureRect" parent="."]
self_modulate = Color(0.827451, 0.521569, 0.313726, 1)
offset_left = -10462.0
offset_top = -14103.0
offset_right = 47088.0
offset_bottom = 30041.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_tghpu")
stretch_mode = 1
[node name="TrackPath" type="Path2D" parent="."]
curve = SubResource("Curve2D_ll8bj")
[node name="TrackLine" type="Line2D" parent="."]
self_modulate = Color(0.164706, 0.658824, 0.858824, 1)
texture_repeat = 2
texture = ExtResource("3_m80eb")
texture_mode = 2
begin_cap_mode = 2
[node name="FinishLine" type="Line2D" parent="."]
texture_repeat = 2
width = 40.0
texture = ExtResource("4_1w2e5")
texture_mode = 1
begin_cap_mode = 2
end_cap_mode = 2
round_precision = 32
antialiased = true
[node name="player" parent="." instance=ExtResource("5_4d0xw")]
position = Vector2(55, -13)
brake_strength = 800.0
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="hud" parent="CanvasLayer" instance=ExtResource("6_tmqkf")]
size_flags_horizontal = 3
[node name="menu_box" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
[node name="level" parent="CanvasLayer/menu_box" instance=ExtResource("7_bv3bp")]
visible = false
layout_mode = 1
[node name="Node2D" type="Node2D" parent="."]
[node name="Sign" parent="Node2D" instance=ExtResource("10_q5p01")]
light_mask = 7
position = Vector2(-2547, 1580)
rotation = -1.50684
[node name="level_music" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_vi54e")
volume_db = -29.953
autoplay = true
bus = &"Music"
[node name="Editor_Light" type="DirectionalLight2D" parent="."]
editor_only = true
[connection signal="distance_changed" from="." to="CanvasLayer/hud" method="_on_level_distance_changed"]
[connection signal="speed_changed" from="player" to="CanvasLayer/hud" method="_on_player_speed_changed"]

View file

@ -14,8 +14,11 @@ size = Vector2(36, 20)
[node name="player" type="StaticBody2D" node_paths=PackedStringArray("camera")]
script = ExtResource("1_g4ij8")
turn_speed = 0.8
brake_strength = 600.0
acc = 400.0
dec = 200.0
max_speed = 1800.0
turn_speed = 1.2
brake_strength = 1000.0
drift_factor = 1.2
camera_offset = 200.0
camera = NodePath("Camera2D")
@ -54,7 +57,7 @@ position = Vector2(-1, 0)
shape = SubResource("RectangleShape2D_w2nj7")
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color(0.0784314, 0.0784314, 0.0784314, 1)
color = Color(0.0392157, 0.0392157, 0.0392157, 1)
[node name="Camera2D" type="Camera2D" parent="."]
rotation = 1.5708

8
src/game/sign.tscn Normal file
View file

@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=3 uid="uid://ya1ctigi23wa"]
[ext_resource type="Texture2D" uid="uid://5adhfejo8e18" path="res://assets/sign_2.png" id="1_ynna8"]
[node name="Sign" type="PointLight2D"]
energy = 10.0
texture = ExtResource("1_ynna8")
texture_scale = 0.2