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

BIN
assets/bg2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

34
assets/bg2.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dio3rrptd6w7c"
path="res://.godot/imported/bg2.png-7e0fd5896bf6fbd065fac06948d48d0e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/bg2.png"
dest_files=["res://.godot/imported/bg2.png-7e0fd5896bf6fbd065fac06948d48d0e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
assets/light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

34
assets/light.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ceqcsof04vhqs"
path="res://.godot/imported/light.png-87539b10c4b4cebc046b6b91ffea6f69.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/light.png"
dest_files=["res://.godot/imported/light.png-87539b10c4b4cebc046b6b91ffea6f69.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 5 KiB

BIN
assets/track90.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

34
assets/track90.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ds0un04pocx6i"
path="res://.godot/imported/track90.png-8588bc8e9dc5fdd6e6f027ae8d9974a3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/track90.png"
dest_files=["res://.godot/imported/track90.png-8588bc8e9dc5fdd6e6f027ae8d9974a3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -2,10 +2,10 @@
[ext_resource type="Script" path="res://src/game/level.gd" id="1_hv75i"] [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="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="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://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"] [sub_resource type="Curve2D" id="Curve2D_ll8bj"]
_data = { _data = {
@ -23,13 +23,13 @@ player = NodePath("player")
finish = NodePath("FinishLine") finish = NodePath("FinishLine")
[node name="TextureRect" type="TextureRect" parent="."] [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_left = -6505.0
offset_top = -3355.0 offset_top = -3355.0
offset_right = 19845.0 offset_right = 19845.0
offset_bottom = 12825.0 offset_bottom = 12825.0
scale = Vector2(0.5, 0.5) scale = Vector2(0.5, 0.5)
texture = ExtResource("6_8waul") texture = ExtResource("2_bk3ik")
stretch_mode = 1 stretch_mode = 1
[node name="TrackPath" type="Path2D" parent="."] [node name="TrackPath" type="Path2D" parent="."]
@ -37,7 +37,7 @@ curve = SubResource("Curve2D_ll8bj")
[node name="TrackLine" type="Line2D" parent="."] [node name="TrackLine" type="Line2D" parent="."]
texture_repeat = 2 texture_repeat = 2
texture = ExtResource("2_knecs") texture = ExtResource("3_jtw40")
texture_mode = 2 texture_mode = 2
begin_cap_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="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://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"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_w2nj7"]
size = Vector2(36, 20) size = Vector2(36, 20)
@ -20,10 +21,18 @@ rotation = 1.5708
scale = Vector2(0.0489796, 0.0489796) scale = Vector2(0.0489796, 0.0489796)
texture = ExtResource("2_xal47") 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="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, 0) position = Vector2(-1, 0)
shape = SubResource("RectangleShape2D_w2nj7") 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="."] [node name="Camera2D" type="Camera2D" parent="."]
rotation = 1.5708 rotation = 1.5708
ignore_rotation = false ignore_rotation = false