diff --git a/assets/bg2.png b/assets/bg2.png new file mode 100644 index 0000000..699687e Binary files /dev/null and b/assets/bg2.png differ diff --git a/assets/bg2.png.import b/assets/bg2.png.import new file mode 100644 index 0000000..19b7373 --- /dev/null +++ b/assets/bg2.png.import @@ -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 diff --git a/assets/light.png b/assets/light.png new file mode 100644 index 0000000..675f10e Binary files /dev/null and b/assets/light.png differ diff --git a/assets/light.png.import b/assets/light.png.import new file mode 100644 index 0000000..d2bf5e6 --- /dev/null +++ b/assets/light.png.import @@ -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 diff --git a/assets/track.png b/assets/track.png index c78277e..5f1e22d 100644 Binary files a/assets/track.png and b/assets/track.png differ diff --git a/assets/track90.png b/assets/track90.png new file mode 100644 index 0000000..659e044 Binary files /dev/null and b/assets/track90.png differ diff --git a/assets/track90.png.import b/assets/track90.png.import new file mode 100644 index 0000000..390de00 --- /dev/null +++ b/assets/track90.png.import @@ -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 diff --git a/src/game/level1.tscn b/src/game/level1.tscn index cbce769..c6a4a33 100644 --- a/src/game/level1.tscn +++ b/src/game/level1.tscn @@ -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 diff --git a/src/game/player.tscn b/src/game/player.tscn index 83eefc4..a13bdb4 100644 --- a/src/game/player.tscn +++ b/src/game/player.tscn @@ -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