diff --git a/converters/gold_to_gem/gem_converter.tscn b/converters/gold_to_gem/gem_converter.tscn index 428db43..12fa6f1 100644 --- a/converters/gold_to_gem/gem_converter.tscn +++ b/converters/gold_to_gem/gem_converter.tscn @@ -1,25 +1,36 @@ [gd_scene load_steps=17 format=3 uid="uid://c4ew8x4gch275"] [ext_resource type="Script" path="res://converters/converter.gd" id="1_f5plk"] +[ext_resource type="Texture2D" uid="uid://chc8wqc1pclbk" path="res://converters/gold_to_gem/gold_converter_back.png" id="2_icys1"] +[ext_resource type="Texture2D" uid="uid://dgw5ip5qf5k7a" path="res://converters/gold_to_gem/gold_converter_front_1.png" id="3_n6auo"] +[ext_resource type="Texture2D" uid="uid://h7hu4paxjq84" path="res://converters/gold_to_gem/gold_converter_front_2.png" id="4_dxxyk"] +[ext_resource type="Texture2D" uid="uid://dlog0f5nk4b3c" path="res://converters/gold_to_gem/gold_converter_front_3.png" id="5_lnr8u"] +[ext_resource type="Texture2D" uid="uid://cj5m5k0hr3wmw" path="res://converters/gold_to_gem/gold_converter_front_4.png" id="6_nh41p"] +[ext_resource type="Texture2D" uid="uid://b5uershakuq20" path="res://converters/gold_to_gem/gold_converter_front_5.png" id="7_jfv3m"] [ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="7_m34js"] [ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="8_qwbjp"] -[ext_resource type="PackedScene" uid="uid://du3005kwybbrh" path="res://entity/coin_gold/coin_gold.tscn" id="10_5hiv4"] +[ext_resource type="PackedScene" uid="uid://bawprh8kluilq" path="res://entity/gem/gem.tscn" id="9_2ugi1"] [ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="10_f1h6i"] [ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="11_ywwn2"] [sub_resource type="AtlasTexture" id="AtlasTexture_wy1v3"] +atlas = ExtResource("3_n6auo") region = Rect2(0, 4, 32, 31) [sub_resource type="AtlasTexture" id="AtlasTexture_2164d"] +atlas = ExtResource("4_dxxyk") region = Rect2(0, 4, 32, 31) [sub_resource type="AtlasTexture" id="AtlasTexture_i5584"] +atlas = ExtResource("5_lnr8u") region = Rect2(0, 4, 32, 31) [sub_resource type="AtlasTexture" id="AtlasTexture_qad4c"] +atlas = ExtResource("6_nh41p") region = Rect2(0, 4, 32, 31) [sub_resource type="AtlasTexture" id="AtlasTexture_600qi"] +atlas = ExtResource("7_jfv3m") region = Rect2(0, 4, 32, 31) [sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"] @@ -58,15 +69,21 @@ size = Vector2(26, 5) [sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"] size = Vector2(26, 8.83334) -[node name="GemConverter" type="StaticBody2D"] +[node name="GemConverter" type="StaticBody2D" node_paths=PackedStringArray("sprite_front", "conversion_timer", "sound_working", "sound_complete", "spawner")] scale = Vector2(3, 3) collision_layer = 8 collision_mask = 0 script = ExtResource("1_f5plk") +sprite_front = NodePath("SpriteFront") +conversion_timer = NodePath("ConversionTimer") +sound_working = NodePath("SoundWorking") +sound_complete = NodePath("SoundComplete") +spawner = NodePath("Spawner") [node name="SpriteBack" type="Sprite2D" parent="."] z_index = -2 texture_filter = 1 +texture = ExtResource("2_icys1") [node name="SpriteFront" type="AnimatedSprite2D" parent="."] z_index = 2 @@ -102,7 +119,7 @@ debug_color = Color(0, 0.701961, 0.188235, 0.419608) [node name="Spawner" parent="." instance=ExtResource("8_qwbjp")] position = Vector2(0, 8) -scene = ExtResource("10_5hiv4") +scene = ExtResource("9_2ugi1") buffer_cap = 1 spawn_rect = Rect2(-8, 0, 16, 4) spawn_rotation_degrees_min = 80.0 diff --git a/converters/item_converter/item_converter.tscn b/converters/item_converter/item_converter.tscn new file mode 100644 index 0000000..4b97a2e --- /dev/null +++ b/converters/item_converter/item_converter.tscn @@ -0,0 +1,189 @@ +[gd_scene load_steps=33 format=3 uid="uid://ddrhfhebwtq5"] + +[ext_resource type="Script" path="res://converters/converter.gd" id="1_qln0a"] +[ext_resource type="Texture2D" uid="uid://devcho3gaigt0" path="res://converters/item_converter/item_converter_back_1.png" id="2_136t7"] +[ext_resource type="Texture2D" uid="uid://bq54rpw5jufyd" path="res://converters/item_converter/item_converter_back_2.png" id="3_6gyd6"] +[ext_resource type="PackedScene" uid="uid://c5w3b55aiui6c" path="res://collector/collector.tscn" id="3_qehi7"] +[ext_resource type="Texture2D" uid="uid://dsolplf1s7va6" path="res://converters/item_converter/item_converter_back_3.png" id="4_bs7n5"] +[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="4_ihtl7"] +[ext_resource type="PackedScene" uid="uid://dme22vvfgme5f" path="res://entity/coin_silver/coin_silver.tscn" id="5_fp5qt"] +[ext_resource type="Texture2D" uid="uid://c4vpmiwjfvcpy" path="res://converters/item_converter/item_converter_back_4.png" id="5_lk4ym"] +[ext_resource type="Texture2D" uid="uid://c0kstbgsm65vq" path="res://converters/item_converter/item_converter_back_5.png" id="6_io2km"] +[ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="6_w6x4p"] +[ext_resource type="Texture2D" uid="uid://crnu1x5n33yqu" path="res://converters/item_converter/item_converter_front_1.png" id="7_khayw"] +[ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="7_x4ti3"] +[ext_resource type="Texture2D" uid="uid://b0vkliltyaljc" path="res://converters/item_converter/item_converter_front_2.png" id="8_w6rnl"] +[ext_resource type="Texture2D" uid="uid://fqerky4lyps8" path="res://converters/item_converter/item_converter_front_3.png" id="9_88mk7"] +[ext_resource type="Texture2D" uid="uid://bw0jgw0jen4lg" path="res://converters/item_converter/item_converter_front_4.png" id="10_fjv52"] +[ext_resource type="Texture2D" uid="uid://4tg81ksibacf" path="res://converters/item_converter/item_converter_front_5.png" id="11_cg5dk"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_uqtie"] +atlas = ExtResource("2_136t7") +region = Rect2(0, 0, 32, 9) + +[sub_resource type="AtlasTexture" id="AtlasTexture_aej48"] +atlas = ExtResource("3_6gyd6") +region = Rect2(0, 0, 32, 9) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tc0dd"] +atlas = ExtResource("4_bs7n5") +region = Rect2(0, 0, 32, 9) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xunws"] +atlas = ExtResource("5_lk4ym") +region = Rect2(0, 0, 32, 9) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kf4dp"] +atlas = ExtResource("6_io2km") +region = Rect2(0, 0, 32, 9) + +[sub_resource type="SpriteFrames" id="SpriteFrames_psnir"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_uqtie") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_aej48") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tc0dd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xunws") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kf4dp") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="AtlasTexture" id="AtlasTexture_qnpyk"] +atlas = ExtResource("7_khayw") +region = Rect2(0, 5, 32, 27) + +[sub_resource type="AtlasTexture" id="AtlasTexture_m7447"] +atlas = ExtResource("8_w6rnl") +region = Rect2(0, 5, 32, 27) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5cwul"] +atlas = ExtResource("9_88mk7") +region = Rect2(0, 5, 32, 27) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ee880"] +atlas = ExtResource("10_fjv52") +region = Rect2(0, 5, 32, 27) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qs650"] +atlas = ExtResource("11_cg5dk") +region = Rect2(0, 5, 32, 27) + +[sub_resource type="SpriteFrames" id="SpriteFrames_qqah4"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_qnpyk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_m7447") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5cwul") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ee880") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qs650") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aslkt"] +radius = 1.5 +height = 28.0 + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_31dtl"] +size = Vector2(26, 4) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_k11if"] +size = Vector2(26, 5) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"] +size = Vector2(26, 8.83334) + +[node name="ItemConverter" type="StaticBody2D"] +scale = Vector2(3, 3) +script = ExtResource("1_qln0a") + +[node name="SpriteBack" type="AnimatedSprite2D" parent="."] +texture_filter = 1 +position = Vector2(0, -14) +sprite_frames = SubResource("SpriteFrames_psnir") +frame_progress = 0.0929807 + +[node name="SpriteFront" type="AnimatedSprite2D" parent="."] +texture_filter = 1 +sprite_frames = SubResource("SpriteFrames_qqah4") +frame_progress = 0.859387 + +[node name="LeftWall" type="CollisionShape2D" parent="."] +z_index = 2 +position = Vector2(-14.5, -3) +shape = SubResource("CapsuleShape2D_aslkt") + +[node name="RightWall" type="CollisionShape2D" parent="."] +z_index = 2 +position = Vector2(14.5, -3) +shape = SubResource("CapsuleShape2D_aslkt") + +[node name="InnerWall" type="CollisionShape2D" parent="."] +z_index = 3 +position = Vector2(0, 4.5) +rotation = 3.14159 +shape = SubResource("RectangleShape2D_31dtl") + +[node name="Collector" parent="." instance=ExtResource("3_qehi7")] +z_index = 2 +collecting_types = Array[StringName]([&"Copper"]) +collecting_amount = 10 + +[node name="CollectShape" type="CollisionShape2D" parent="Collector"] +shape = SubResource("RectangleShape2D_k11if") +debug_color = Color(0, 0.701961, 0.188235, 0.419608) + +[node name="Spawner" parent="." instance=ExtResource("4_ihtl7")] +position = Vector2(0, 8) +scene = ExtResource("5_fp5qt") +buffer_cap = 1 +spawn_rect = Rect2(-8, 0, 16, 4) +spawn_rotation_degrees_min = 80.0 +spawn_rotation_degrees_max = 100.0 +overlapping_body_count_limit = 4 + +[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"] +z_index = 3 +position = Vector2(0, 3.5) +shape = SubResource("RectangleShape2D_jeo5f") +debug_color = Color(0.701961, 0, 0, 0.419608) + +[node name="ConversionTimer" type="Timer" parent="."] +wait_time = 0.5 +one_shot = true + +[node name="SoundAbsorb" type="AudioStreamPlayer" parent="."] +stream = ExtResource("6_w6x4p") + +[node name="SoundWorking" type="AudioStreamPlayer" parent="."] +stream = ExtResource("6_w6x4p") + +[node name="SoundComplete" type="AudioStreamPlayer" parent="."] +stream = ExtResource("7_x4ti3") + +[connection signal="collected" from="Collector" to="." method="_on_collector_collected" flags=18] +[connection signal="goal" from="Collector" to="." method="_on_collector_goal" flags=18] +[connection signal="timeout" from="ConversionTimer" to="." method="_on_timer_timeout" flags=18] diff --git a/converters/item_converter/item_converter_back_1.png b/converters/item_converter/item_converter_back_1.png new file mode 100644 index 0000000..3df3be4 --- /dev/null +++ b/converters/item_converter/item_converter_back_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b16d94bef9bf00faaabfb53b8ae2fe0b6185c2fb1aa731cfed04dfd19fe4c56 +size 444 diff --git a/converters/item_converter/item_converter_back_1.png.import b/converters/item_converter/item_converter_back_1.png.import new file mode 100644 index 0000000..fb4fdb2 --- /dev/null +++ b/converters/item_converter/item_converter_back_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://devcho3gaigt0" +path="res://.godot/imported/item_converter_back_1.png-02fb6c676f39604a12591aa253536bdc.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_back_1.png" +dest_files=["res://.godot/imported/item_converter_back_1.png-02fb6c676f39604a12591aa253536bdc.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/converters/item_converter/item_converter_back_2.png b/converters/item_converter/item_converter_back_2.png new file mode 100644 index 0000000..2c3d538 --- /dev/null +++ b/converters/item_converter/item_converter_back_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aebf62026c8302b09f866a8336612ac173906c9fbfbb75e7348de993948023d6 +size 480 diff --git a/converters/item_converter/item_converter_back_2.png.import b/converters/item_converter/item_converter_back_2.png.import new file mode 100644 index 0000000..d5b6232 --- /dev/null +++ b/converters/item_converter/item_converter_back_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bq54rpw5jufyd" +path="res://.godot/imported/item_converter_back_2.png-4185f44143b834d6b4de21c37ed10c7a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_back_2.png" +dest_files=["res://.godot/imported/item_converter_back_2.png-4185f44143b834d6b4de21c37ed10c7a.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/converters/item_converter/item_converter_back_3.png b/converters/item_converter/item_converter_back_3.png new file mode 100644 index 0000000..a914b51 --- /dev/null +++ b/converters/item_converter/item_converter_back_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5017b6eebf29530918a7c362d610f0a50a85effb9004010abe3df1c49901d92 +size 441 diff --git a/converters/item_converter/item_converter_back_3.png.import b/converters/item_converter/item_converter_back_3.png.import new file mode 100644 index 0000000..d7ef522 --- /dev/null +++ b/converters/item_converter/item_converter_back_3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dsolplf1s7va6" +path="res://.godot/imported/item_converter_back_3.png-54c120abb9e3422ebcfe32b932dbc251.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_back_3.png" +dest_files=["res://.godot/imported/item_converter_back_3.png-54c120abb9e3422ebcfe32b932dbc251.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/converters/item_converter/item_converter_back_4.png b/converters/item_converter/item_converter_back_4.png new file mode 100644 index 0000000..9142e87 --- /dev/null +++ b/converters/item_converter/item_converter_back_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b2b8d09f5400375c939c0180095c0dace32e45a814eb58ad541049886c1d8bc +size 452 diff --git a/converters/item_converter/item_converter_back_4.png.import b/converters/item_converter/item_converter_back_4.png.import new file mode 100644 index 0000000..7f3a43f --- /dev/null +++ b/converters/item_converter/item_converter_back_4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c4vpmiwjfvcpy" +path="res://.godot/imported/item_converter_back_4.png-1c9f35db5b4a349a668f18d5214b2727.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_back_4.png" +dest_files=["res://.godot/imported/item_converter_back_4.png-1c9f35db5b4a349a668f18d5214b2727.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/converters/item_converter/item_converter_back_5.png b/converters/item_converter/item_converter_back_5.png new file mode 100644 index 0000000..f35e58a --- /dev/null +++ b/converters/item_converter/item_converter_back_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e11cf2b9ac0ad338f1c5c877250a49d858a149782d9d1c370c558e2a9d7068b +size 457 diff --git a/converters/item_converter/item_converter_back_5.png.import b/converters/item_converter/item_converter_back_5.png.import new file mode 100644 index 0000000..b1dae29 --- /dev/null +++ b/converters/item_converter/item_converter_back_5.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c0kstbgsm65vq" +path="res://.godot/imported/item_converter_back_5.png-42bccf2648ac72639c3222e782973419.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_back_5.png" +dest_files=["res://.godot/imported/item_converter_back_5.png-42bccf2648ac72639c3222e782973419.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/converters/item_converter/item_converter_front_1.png b/converters/item_converter/item_converter_front_1.png new file mode 100644 index 0000000..9588135 --- /dev/null +++ b/converters/item_converter/item_converter_front_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1d0ae94edb939f55c6a4a7daf661f57776dc08d8f69e70dc3bff2feac716956 +size 1185 diff --git a/converters/item_converter/item_converter_front_1.png.import b/converters/item_converter/item_converter_front_1.png.import new file mode 100644 index 0000000..aed1574 --- /dev/null +++ b/converters/item_converter/item_converter_front_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://crnu1x5n33yqu" +path="res://.godot/imported/item_converter_front_1.png-dd1daf8a9c0a510530b499678f35b24b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_front_1.png" +dest_files=["res://.godot/imported/item_converter_front_1.png-dd1daf8a9c0a510530b499678f35b24b.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/converters/item_converter/item_converter_front_2.png b/converters/item_converter/item_converter_front_2.png new file mode 100644 index 0000000..1663366 --- /dev/null +++ b/converters/item_converter/item_converter_front_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dfe9b7c2acd714cdc26ac5c40fa8046aa2a9f9fcf9d89189a572b4bfe514ede +size 1214 diff --git a/converters/item_converter/item_converter_front_2.png.import b/converters/item_converter/item_converter_front_2.png.import new file mode 100644 index 0000000..b41d7fe --- /dev/null +++ b/converters/item_converter/item_converter_front_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b0vkliltyaljc" +path="res://.godot/imported/item_converter_front_2.png-94c58f1e66500054fedc8d146ac34825.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_front_2.png" +dest_files=["res://.godot/imported/item_converter_front_2.png-94c58f1e66500054fedc8d146ac34825.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/converters/item_converter/item_converter_front_3.png b/converters/item_converter/item_converter_front_3.png new file mode 100644 index 0000000..4a4e0b9 --- /dev/null +++ b/converters/item_converter/item_converter_front_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d83cd20b40fb8985d481f7f4454e20ea429773fe2f763701871373523a8e6cf +size 1314 diff --git a/converters/item_converter/item_converter_front_3.png.import b/converters/item_converter/item_converter_front_3.png.import new file mode 100644 index 0000000..4599bc0 --- /dev/null +++ b/converters/item_converter/item_converter_front_3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://fqerky4lyps8" +path="res://.godot/imported/item_converter_front_3.png-094b9f361323b52b8091796ebea8ef3c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_front_3.png" +dest_files=["res://.godot/imported/item_converter_front_3.png-094b9f361323b52b8091796ebea8ef3c.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/converters/item_converter/item_converter_front_4.png b/converters/item_converter/item_converter_front_4.png new file mode 100644 index 0000000..0c0e4ed --- /dev/null +++ b/converters/item_converter/item_converter_front_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c77f3447291d1e30b240871b47d67445c3528d25574cb6e4ae88368865b96734 +size 1163 diff --git a/converters/item_converter/item_converter_front_4.png.import b/converters/item_converter/item_converter_front_4.png.import new file mode 100644 index 0000000..c1b482f --- /dev/null +++ b/converters/item_converter/item_converter_front_4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bw0jgw0jen4lg" +path="res://.godot/imported/item_converter_front_4.png-2fe2de3df3bc903bb82ba4c361a76624.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_front_4.png" +dest_files=["res://.godot/imported/item_converter_front_4.png-2fe2de3df3bc903bb82ba4c361a76624.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/converters/item_converter/item_converter_front_5.png b/converters/item_converter/item_converter_front_5.png new file mode 100644 index 0000000..4e418b7 --- /dev/null +++ b/converters/item_converter/item_converter_front_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c61daba7e813a3773c7db6f576631aecb392611f17b9fc924c6ebfe809f60404 +size 1289 diff --git a/converters/item_converter/item_converter_front_5.png.import b/converters/item_converter/item_converter_front_5.png.import new file mode 100644 index 0000000..f5e2e0b --- /dev/null +++ b/converters/item_converter/item_converter_front_5.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://4tg81ksibacf" +path="res://.godot/imported/item_converter_front_5.png-8ae35893cd89f1f98246039909bd75cb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://converters/item_converter/item_converter_front_5.png" +dest_files=["res://.godot/imported/item_converter_front_5.png-8ae35893cd89f1f98246039909bd75cb.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/entity/coin_copper/coin_copper.gd b/entity/coin_copper/coin_copper.gd index 594d523..c31701b 100644 --- a/entity/coin_copper/coin_copper.gd +++ b/entity/coin_copper/coin_copper.gd @@ -1,38 +1,27 @@ #extends RigidBody2D # +#@export var sound_touch: AudioStreamPlayer # -## Called when the node enters the scene tree for the first time. -#func _ready(): -# pass # Replace with function body. +#var touched=false +#var was_sleeping: bool = false # +#func set_touched(): +# touched=true # -## Called every frame. 'delta' is the elapsed time since the previous frame. - - -extends RigidBody2D - -@export var sound_touch: AudioStreamPlayer - -var touched=false -var was_sleeping: bool = false - -func set_touched(): - touched=true - -func _on_sleeping_state_changed(): - was_sleeping = true - -func _on_body_entered(body): - if not was_sleeping: - if touched==false and $Timer.is_stopped(): - #$sound_touch.play() - $Timer.start() - var other_node=body - if other_node.has_method("set_touched"): - other_node.set_touched() - -func _on_body_exited(body): - touched=false +#func _on_sleeping_state_changed(): +# was_sleeping = true +# +#func _on_body_entered(body): +# if not was_sleeping: +# if touched==false and $Timer.is_stopped(): +# #$sound_touch.play() +# $Timer.start() +# var other_node=body +# if other_node.has_method("set_touched"): +# other_node.set_touched() +# +#func _on_body_exited(body): +# touched=false diff --git a/entity/coin_copper/coin_copper.tscn b/entity/coin_copper/coin_copper.tscn index 08850eb..750fd34 100644 --- a/entity/coin_copper/coin_copper.tscn +++ b/entity/coin_copper/coin_copper.tscn @@ -11,7 +11,7 @@ [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"] size = Vector2(14, 3) -[node name="CoinCopper" type="RigidBody2D" node_paths=PackedStringArray("sound_touch")] +[node name="CoinCopper" type="RigidBody2D"] collision_layer = 5 collision_mask = 7 inertia = 1000.0 @@ -22,7 +22,6 @@ contact_monitor = true linear_damp = 0.1 angular_damp = 0.1 script = ExtResource("2_1r8w3") -sound_touch = NodePath("sound_touch") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] scale = Vector2(2, 2) diff --git a/entity/gem/gem.tscn b/entity/gem/gem.tscn index 9bce7f2..bfa6cf6 100644 --- a/entity/gem/gem.tscn +++ b/entity/gem/gem.tscn @@ -24,7 +24,7 @@ linear_damp = 0.1 angular_damp = 0.1 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -scale = Vector2(2, 2) +scale = Vector2(4, 4) shape = SubResource("CapsuleShape2D_jkfas") [node name="Sprite" type="Sprite2D" parent="CollisionShape2D"] diff --git a/entity/gem/gemstone.gdshader b/entity/gem/gemstone.gdshader new file mode 100644 index 0000000..e69de29 diff --git a/entity/item_ring_gems.png b/entity/item_ring_gems.png index aae980c..b083df3 100644 --- a/entity/item_ring_gems.png +++ b/entity/item_ring_gems.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:83ae678cf8d64f2dcf6e1e0ce48a7113d1d9c9bbd5cefa91b7d16075b43d3ed7 -size 219 +oid sha256:c8c2e0026cdf0f55fa51e5c4967e36b66241f137fc2638fcaf42e411e44c1297 +size 209