added vehicle trail, tweaked vehicle texture, tweaked lights

This commit is contained in:
Metzkermeister 2023-10-02 15:55:53 +02:00
parent 17085c5148
commit 3265148f69
10 changed files with 149 additions and 8 deletions

View file

@ -1,12 +1,13 @@
[gd_scene load_steps=8 format=3 uid="uid://ckau5s2tsb3oc"]
[gd_scene load_steps=10 format=3 uid="uid://ckau5s2tsb3oc"]
[ext_resource type="Script" path="res://src/game/player_controller.gd" id="1_g4ij8"]
[ext_resource type="Texture2D" uid="uid://bx4nammvn7hea" path="res://assets/vehicle2.png" id="2_ifw0w"]
[ext_resource type="Texture2D" uid="uid://c2ldu662bhlhh" path="res://assets/v_light2.png" id="2_velje"]
[ext_resource type="Texture2D" uid="uid://bnyyk81dhy3h2" path="res://assets/vehicle.png" id="3_4a53i"]
[ext_resource type="Texture2D" uid="uid://ceqcsof04vhqs" path="res://assets/light.png" id="3_qosw5"]
[ext_resource type="AudioStream" uid="uid://cc4ffx6b0xjvk" path="res://assets/sounds/sfx/engine_loop.wav" id="4_4ajo8"]
[ext_resource type="AudioStream" uid="uid://c7laud048l1is" path="res://assets/sounds/sfx/damage.wav" id="5_rvolc"]
[ext_resource type="AudioStream" uid="uid://c6dy6nea6vaa4" path="res://assets/sounds/sfx/death_sound.wav" id="6_i0vg5"]
[ext_resource type="PackedScene" uid="uid://c15m0i1a07em4" path="res://src/game/trail_2d.tscn" id="8_shyhm"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w2nj7"]
size = Vector2(36, 20)
@ -19,23 +20,30 @@ drift_factor = 1.2
camera_offset = 200.0
camera = NodePath("Camera2D")
[node name="player_light" type="PointLight2D" parent="."]
[node name="player_bottom_light" type="PointLight2D" parent="."]
position = Vector2(0, 3.09944e-05)
rotation = 1.5708
scale = Vector2(0.1, 0.1)
energy = 5.0
energy = 3.0
range_item_cull_mask = 3
texture = ExtResource("2_velje")
[node name="Playermodel" type="Sprite2D" parent="."]
light_mask = 4
light_mask = 8
position = Vector2(0, 3.09944e-05)
rotation = 1.5708
scale = Vector2(0.1, 0.1)
texture = ExtResource("2_ifw0w")
texture = ExtResource("3_4a53i")
[node name="player_light" type="PointLight2D" parent="."]
rotation = -3.14159
range_item_cull_mask = 8
texture = ExtResource("3_qosw5")
texture_scale = 3.5
[node name="vignette_light" type="PointLight2D" parent="."]
rotation = 1.5708
energy = 2.0
range_item_cull_mask = 7
texture = ExtResource("3_qosw5")
texture_scale = 3.5
@ -65,3 +73,7 @@ volume_db = -25.297
[node name="death_sound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_i0vg5")
volume_db = -25.297
[node name="Trail2D" parent="." instance=ExtResource("8_shyhm")]
light_mask = 7
MAX_LENGTH = 40