added curvesigns, new finishline, diesmal wirklich

This commit is contained in:
Metzkermeister 2023-10-01 17:25:47 +02:00
parent dc66abaadb
commit 735fda97b6
5 changed files with 93 additions and 3 deletions

BIN
assets/finish2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

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

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dmcrms0qu0mtt"
path="res://.godot/imported/finish2.png-57365df9f76ffd7b8d410e09f614de04.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/finish2.png"
dest_files=["res://.godot/imported/finish2.png-57365df9f76ffd7b8d410e09f614de04.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/sign.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

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

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bq151lkkfdlf4"
path="res://.godot/imported/sign.png-ce1750a0a91cc7aa81e844b4d838bf25.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sign.png"
dest_files=["res://.godot/imported/sign.png-ce1750a0a91cc7aa81e844b4d838bf25.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

@ -1,11 +1,12 @@
[gd_scene load_steps=8 format=3 uid="uid://c77xk0mywwt5f"] [gd_scene load_steps=9 format=3 uid="uid://c77xk0mywwt5f"]
[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://dio3rrptd6w7c" path="res://assets/bg2.png" id="2_bk3ik"] [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://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://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_rxurh"]
[ext_resource type="Texture2D" uid="uid://bq151lkkfdlf4" path="res://assets/sign.png" id="7_g24mp"]
[sub_resource type="Curve2D" id="Curve2D_ll8bj"] [sub_resource type="Curve2D" id="Curve2D_ll8bj"]
_data = { _data = {
@ -36,15 +37,22 @@ stretch_mode = 1
curve = SubResource("Curve2D_ll8bj") curve = SubResource("Curve2D_ll8bj")
[node name="TrackLine" type="Line2D" parent="."] [node name="TrackLine" type="Line2D" parent="."]
self_modulate = Color(0.827451, 0.521569, 0.313726, 1)
texture_repeat = 2 texture_repeat = 2
texture = ExtResource("3_jtw40") texture = ExtResource("3_jtw40")
texture_mode = 2 texture_mode = 2
begin_cap_mode = 2 begin_cap_mode = 2
[node name="FinishLine" type="Line2D" parent="."] [node name="FinishLine" type="Line2D" parent="."]
self_modulate = Color(0.827451, 0.521569, 0.313726, 1)
texture_repeat = 2 texture_repeat = 2
texture = ExtResource("4_r6pvu") width = 40.0
texture = ExtResource("4_rxurh")
texture_mode = 1 texture_mode = 1
begin_cap_mode = 2
end_cap_mode = 2
round_precision = 32
antialiased = true
[node name="player" parent="." instance=ExtResource("2_5nf51")] [node name="player" parent="." instance=ExtResource("2_5nf51")]
position = Vector2(27, -55) position = Vector2(27, -55)
@ -55,5 +63,19 @@ brake_strength = 800.0
[node name="hud" parent="CanvasLayer" instance=ExtResource("2_w64nx")] [node name="hud" parent="CanvasLayer" instance=ExtResource("2_w64nx")]
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="curveSign" type="PointLight2D" parent="."]
position = Vector2(-1914, -560)
scale = Vector2(0.1, 0.1)
color = Color(1, 0.0627451, 0.694118, 1)
energy = 20.0
texture = ExtResource("7_g24mp")
[node name="curveSign2" type="PointLight2D" parent="."]
position = Vector2(-1997, -491)
scale = Vector2(0.1, 0.1)
color = Color(1, 0.0627451, 0.694118, 1)
energy = 20.0
texture = ExtResource("7_g24mp")
[connection signal="distance_changed" from="." to="CanvasLayer/hud" method="_on_level_distance_changed"] [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"] [connection signal="speed_changed" from="player" to="CanvasLayer/hud" method="_on_player_speed_changed"]