added lights, track texture

This commit is contained in:
Metzkermeister 2023-10-01 15:10:32 +02:00
parent 8f9ad6f87c
commit 2dcd561dbc
9 changed files with 117 additions and 6 deletions

View file

@ -2,10 +2,10 @@
[ext_resource type="Script" path="res://src/game/level.gd" id="1_hv75i"]
[ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="2_5nf51"]
[ext_resource type="Texture2D" uid="uid://bd0jqkgq1gh7p" path="res://assets/track.png" id="2_knecs"]
[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg2.png" id="2_bk3ik"]
[ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/game/hud.tscn" id="2_w64nx"]
[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track90.png" id="3_jtw40"]
[ext_resource type="Texture2D" uid="uid://cd7bqj3v0k8yi" path="res://assets/finish.png" id="4_r6pvu"]
[ext_resource type="Texture2D" uid="uid://df7avgwk5ggx" path="res://assets/bg.png" id="6_8waul"]
[sub_resource type="Curve2D" id="Curve2D_ll8bj"]
_data = {
@ -23,13 +23,13 @@ player = NodePath("player")
finish = NodePath("FinishLine")
[node name="TextureRect" type="TextureRect" parent="."]
self_modulate = Color(0.93212, 0.807108, 0.728746, 1)
self_modulate = Color(0.827451, 0.521569, 0.313726, 1)
offset_left = -6505.0
offset_top = -3355.0
offset_right = 19845.0
offset_bottom = 12825.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("6_8waul")
texture = ExtResource("2_bk3ik")
stretch_mode = 1
[node name="TrackPath" type="Path2D" parent="."]
@ -37,7 +37,7 @@ curve = SubResource("Curve2D_ll8bj")
[node name="TrackLine" type="Line2D" parent="."]
texture_repeat = 2
texture = ExtResource("2_knecs")
texture = ExtResource("3_jtw40")
texture_mode = 2
begin_cap_mode = 2

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://ckau5s2tsb3oc"]
[gd_scene load_steps=5 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://d1t1g7hyil82v" path="res://assets/spracer.png" id="2_xal47"]
[ext_resource type="Texture2D" uid="uid://ceqcsof04vhqs" path="res://assets/light.png" id="3_qosw5"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w2nj7"]
size = Vector2(36, 20)
@ -20,10 +21,18 @@ rotation = 1.5708
scale = Vector2(0.0489796, 0.0489796)
texture = ExtResource("2_xal47")
[node name="PointLight2D" type="PointLight2D" parent="."]
rotation = 1.5708
texture = ExtResource("3_qosw5")
texture_scale = 3.5
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, 0)
shape = SubResource("RectangleShape2D_w2nj7")
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color(0.0784314, 0.0784314, 0.0784314, 1)
[node name="Camera2D" type="Camera2D" parent="."]
rotation = 1.5708
ignore_rotation = false