diff --git a/assets/v_light.png b/assets/v_light.png new file mode 100644 index 0000000..c488a9b Binary files /dev/null and b/assets/v_light.png differ diff --git a/assets/v_light.png.import b/assets/v_light.png.import new file mode 100644 index 0000000..d253da4 --- /dev/null +++ b/assets/v_light.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bva8vs42tx03s" +path="res://.godot/imported/v_light.png-7acf5f641671ba7235dbbd4787595e37.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/v_light.png" +dest_files=["res://.godot/imported/v_light.png-7acf5f641671ba7235dbbd4787595e37.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 diff --git a/assets/v_light2.png b/assets/v_light2.png new file mode 100644 index 0000000..5940e46 Binary files /dev/null and b/assets/v_light2.png differ diff --git a/assets/v_light2.png.import b/assets/v_light2.png.import new file mode 100644 index 0000000..4fd9138 --- /dev/null +++ b/assets/v_light2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2ldu662bhlhh" +path="res://.godot/imported/v_light2.png-ab361c7de69a8dec4185215e9529c3e8.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/v_light2.png" +dest_files=["res://.godot/imported/v_light2.png-ab361c7de69a8dec4185215e9529c3e8.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 diff --git a/assets/vehicle.png b/assets/vehicle.png new file mode 100644 index 0000000..b4842e2 Binary files /dev/null and b/assets/vehicle.png differ diff --git a/assets/vehicle.png.import b/assets/vehicle.png.import new file mode 100644 index 0000000..fc3c673 --- /dev/null +++ b/assets/vehicle.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bnyyk81dhy3h2" +path="res://.godot/imported/vehicle.png-a41cb91fcab998de7698162333ee5bc9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/vehicle.png" +dest_files=["res://.godot/imported/vehicle.png-a41cb91fcab998de7698162333ee5bc9.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 diff --git a/assets/vehicle2.png b/assets/vehicle2.png new file mode 100644 index 0000000..aca965d Binary files /dev/null and b/assets/vehicle2.png differ diff --git a/assets/vehicle2.png.import b/assets/vehicle2.png.import new file mode 100644 index 0000000..c952995 --- /dev/null +++ b/assets/vehicle2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bx4nammvn7hea" +path="res://.godot/imported/vehicle2.png-bb7df5e942f0854be95e87da75ff4526.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/vehicle2.png" +dest_files=["res://.godot/imported/vehicle2.png-bb7df5e942f0854be95e87da75ff4526.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 diff --git a/assets/vehicle3.png b/assets/vehicle3.png new file mode 100644 index 0000000..fb9ff74 Binary files /dev/null and b/assets/vehicle3.png differ diff --git a/assets/vehicle3.png.import b/assets/vehicle3.png.import new file mode 100644 index 0000000..046f87e --- /dev/null +++ b/assets/vehicle3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c5lucllx2m3il" +path="res://.godot/imported/vehicle3.png-78502c74c095c869a85b7e51e89120ab.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/vehicle3.png" +dest_files=["res://.godot/imported/vehicle3.png-78502c74c095c869a85b7e51e89120ab.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 diff --git a/src/game/level1.tscn b/src/game/level1.tscn index 2dabe48..418e3fb 100644 --- a/src/game/level1.tscn +++ b/src/game/level1.tscn @@ -37,14 +37,13 @@ stretch_mode = 1 curve = SubResource("Curve2D_ll8bj") [node name="TrackLine" type="Line2D" parent="."] -self_modulate = Color(0.827451, 0.521569, 0.313726, 1) +self_modulate = Color(0.164706, 0.658824, 0.858824, 1) texture_repeat = 2 texture = ExtResource("3_jtw40") texture_mode = 2 begin_cap_mode = 2 [node name="FinishLine" type="Line2D" parent="."] -self_modulate = Color(0.827451, 0.521569, 0.313726, 1) texture_repeat = 2 width = 40.0 texture = ExtResource("4_rxurh") diff --git a/src/game/player.tscn b/src/game/player.tscn index a13bdb4..6190d00 100644 --- a/src/game/player.tscn +++ b/src/game/player.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=5 format=3 uid="uid://ckau5s2tsb3oc"] +[gd_scene load_steps=6 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://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://ceqcsof04vhqs" path="res://assets/light.png" id="3_qosw5"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_w2nj7"] @@ -15,14 +16,24 @@ drift_factor = 1.2 camera_offset = 200.0 camera = NodePath("Camera2D") -[node name="Sprite2D" type="Sprite2D" parent="."] +[node name="player_light" type="PointLight2D" parent="."] position = Vector2(0, 3.09944e-05) rotation = 1.5708 -scale = Vector2(0.0489796, 0.0489796) -texture = ExtResource("2_xal47") +scale = Vector2(0.1, 0.1) +energy = 5.0 +range_item_cull_mask = 3 +texture = ExtResource("2_velje") -[node name="PointLight2D" type="PointLight2D" parent="."] +[node name="Playermodel" type="Sprite2D" parent="."] +light_mask = 4 +position = Vector2(0, 3.09944e-05) rotation = 1.5708 +scale = Vector2(0.1, 0.1) +texture = ExtResource("2_ifw0w") + +[node name="vignette_light" type="PointLight2D" parent="."] +rotation = 1.5708 +range_item_cull_mask = 7 texture = ExtResource("3_qosw5") texture_scale = 3.5