1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-24 16:44:20 +00:00

Merge branch 'main' of github.com:Steffo99/ld54

This commit is contained in:
Steffo 2023-10-02 16:27:46 +02:00
commit 8cd20aa2db
Signed by: steffo
GPG key ID: 2A24051445686895
27 changed files with 602 additions and 38 deletions

View file

@ -1,25 +1,36 @@
[gd_scene load_steps=17 format=3 uid="uid://c4ew8x4gch275"] [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="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://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://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://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"] [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"] [sub_resource type="AtlasTexture" id="AtlasTexture_wy1v3"]
atlas = ExtResource("3_n6auo")
region = Rect2(0, 4, 32, 31) region = Rect2(0, 4, 32, 31)
[sub_resource type="AtlasTexture" id="AtlasTexture_2164d"] [sub_resource type="AtlasTexture" id="AtlasTexture_2164d"]
atlas = ExtResource("4_dxxyk")
region = Rect2(0, 4, 32, 31) region = Rect2(0, 4, 32, 31)
[sub_resource type="AtlasTexture" id="AtlasTexture_i5584"] [sub_resource type="AtlasTexture" id="AtlasTexture_i5584"]
atlas = ExtResource("5_lnr8u")
region = Rect2(0, 4, 32, 31) region = Rect2(0, 4, 32, 31)
[sub_resource type="AtlasTexture" id="AtlasTexture_qad4c"] [sub_resource type="AtlasTexture" id="AtlasTexture_qad4c"]
atlas = ExtResource("6_nh41p")
region = Rect2(0, 4, 32, 31) region = Rect2(0, 4, 32, 31)
[sub_resource type="AtlasTexture" id="AtlasTexture_600qi"] [sub_resource type="AtlasTexture" id="AtlasTexture_600qi"]
atlas = ExtResource("7_jfv3m")
region = Rect2(0, 4, 32, 31) region = Rect2(0, 4, 32, 31)
[sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"] [sub_resource type="SpriteFrames" id="SpriteFrames_4m3dg"]
@ -58,15 +69,21 @@ size = Vector2(26, 5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"]
size = Vector2(26, 8.83334) 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) scale = Vector2(3, 3)
collision_layer = 8 collision_layer = 8
collision_mask = 0 collision_mask = 0
script = ExtResource("1_f5plk") 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="."] [node name="SpriteBack" type="Sprite2D" parent="."]
z_index = -2 z_index = -2
texture_filter = 1 texture_filter = 1
texture = ExtResource("2_icys1")
[node name="SpriteFront" type="AnimatedSprite2D" parent="."] [node name="SpriteFront" type="AnimatedSprite2D" parent="."]
z_index = 2 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")] [node name="Spawner" parent="." instance=ExtResource("8_qwbjp")]
position = Vector2(0, 8) position = Vector2(0, 8)
scene = ExtResource("10_5hiv4") scene = ExtResource("9_2ugi1")
buffer_cap = 1 buffer_cap = 1
spawn_rect = Rect2(-8, 0, 16, 4) spawn_rect = Rect2(-8, 0, 16, 4)
spawn_rotation_degrees_min = 80.0 spawn_rotation_degrees_min = 80.0

View file

@ -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]

BIN
converters/item_converter/item_converter_back_1.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_back_2.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_back_3.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_back_4.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_back_5.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_front_1.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_front_2.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_front_3.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_front_4.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
converters/item_converter/item_converter_front_5.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

View file

@ -1,38 +1,27 @@
#extends RigidBody2D #extends RigidBody2D
# #
#@export var sound_touch: AudioStreamPlayer
# #
## Called when the node enters the scene tree for the first time. #var touched=false
#func _ready(): #var was_sleeping: bool = false
# pass # Replace with function body.
# #
#func set_touched():
# touched=true
# #
## Called every frame. 'delta' is the elapsed time since the previous frame. #func _on_sleeping_state_changed():
# was_sleeping = true
#
extends RigidBody2D #func _on_body_entered(body):
# if not was_sleeping:
@export var sound_touch: AudioStreamPlayer # if touched==false and $Timer.is_stopped():
# #$sound_touch.play()
var touched=false # $Timer.start()
var was_sleeping: bool = false # var other_node=body
# if other_node.has_method("set_touched"):
func set_touched(): # other_node.set_touched()
touched=true #
#func _on_body_exited(body):
func _on_sleeping_state_changed(): # touched=false
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

View file

@ -11,7 +11,7 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
size = Vector2(14, 3) size = Vector2(14, 3)
[node name="CoinCopper" type="RigidBody2D" node_paths=PackedStringArray("sound_touch")] [node name="CoinCopper" type="RigidBody2D"]
collision_layer = 5 collision_layer = 5
collision_mask = 7 collision_mask = 7
inertia = 1000.0 inertia = 1000.0
@ -22,7 +22,6 @@ contact_monitor = true
linear_damp = 0.1 linear_damp = 0.1
angular_damp = 0.1 angular_damp = 0.1
script = ExtResource("2_1r8w3") script = ExtResource("2_1r8w3")
sound_touch = NodePath("sound_touch")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(2, 2) scale = Vector2(2, 2)

View file

@ -24,7 +24,7 @@ linear_damp = 0.1
angular_damp = 0.1 angular_damp = 0.1
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(2, 2) scale = Vector2(4, 4)
shape = SubResource("CapsuleShape2D_jkfas") shape = SubResource("CapsuleShape2D_jkfas")
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"] [node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]

View file

BIN
entity/item_ring_gems.png (Stored with Git LFS)

Binary file not shown.