diff --git a/addons/gut/gui/GutSceneTheme.tres b/addons/gut/gui/GutSceneTheme.tres index 157320aa..7924db96 100644 --- a/addons/gut/gui/GutSceneTheme.tres +++ b/addons/gut/gui/GutSceneTheme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=2 format=3 uid="uid://cstkhwkpajvqu"] +[gd_resource type="Theme" format=3 uid="uid://cstkhwkpajvqu"] [ext_resource type="FontFile" uid="uid://c6c7gnx36opr0" path="res://addons/gut/fonts/AnonymousPro-Regular.ttf" id="1_df57p"] diff --git a/assets/minigames/boss/background.png b/assets/minigames/boss/background.png new file mode 100644 index 00000000..c6407e7c Binary files /dev/null and b/assets/minigames/boss/background.png differ diff --git a/assets/minigames/fish/background.png.import b/assets/minigames/boss/background.png.import similarity index 76% rename from assets/minigames/fish/background.png.import rename to assets/minigames/boss/background.png.import index 0a3c14d1..36160dd9 100644 --- a/assets/minigames/fish/background.png.import +++ b/assets/minigames/boss/background.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://ccfocxdqxujvc" -path="res://.godot/imported/background.png-a97430d601a204450e6bf33d65c00f63.ctex" +path="res://.godot/imported/background.png-c8fad62adf6e7e725e8f4fa28351428b.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/background.png" -dest_files=["res://.godot/imported/background.png-a97430d601a204450e6bf33d65c00f63.ctex"] +source_file="res://assets/minigames/boss/background.png" +dest_files=["res://.godot/imported/background.png-c8fad62adf6e7e725e8f4fa28351428b.ctex"] [params] diff --git a/assets/minigames/boss/bin.png b/assets/minigames/boss/bin.png new file mode 100644 index 00000000..603b3620 Binary files /dev/null and b/assets/minigames/boss/bin.png differ diff --git a/assets/minigames/fish/sea.png.import b/assets/minigames/boss/bin.png.import similarity index 74% rename from assets/minigames/fish/sea.png.import rename to assets/minigames/boss/bin.png.import index ebdeaef2..0e38e2ca 100644 --- a/assets/minigames/fish/sea.png.import +++ b/assets/minigames/boss/bin.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://dey247uccopxi" -path="res://.godot/imported/sea.png-c0f722cb072002b32d33cc85b15b13d8.ctex" +uid="uid://cax5nncivwq4" +path="res://.godot/imported/bin.png-178a6c3441731cfd4b50815abffb3df3.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/sea.png" -dest_files=["res://.godot/imported/sea.png-c0f722cb072002b32d33cc85b15b13d8.ctex"] +source_file="res://assets/minigames/boss/bin.png" +dest_files=["res://.godot/imported/bin.png-178a6c3441731cfd4b50815abffb3df3.ctex"] [params] diff --git a/assets/minigames/boss/book.png b/assets/minigames/boss/book.png new file mode 100644 index 00000000..d1651f5e Binary files /dev/null and b/assets/minigames/boss/book.png differ diff --git a/assets/minigames/fish/fish.png.import b/assets/minigames/boss/book.png.import similarity index 74% rename from assets/minigames/fish/fish.png.import rename to assets/minigames/boss/book.png.import index a55286cb..ac99f383 100644 --- a/assets/minigames/fish/fish.png.import +++ b/assets/minigames/boss/book.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://cscx0pq6raxdo" -path="res://.godot/imported/fish.png-42464b3286c66546e495643695c93674.ctex" +uid="uid://xukdk8dobsqy" +path="res://.godot/imported/book.png-709e1031418499ee1e219a6cfe63a81f.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/fish.png" -dest_files=["res://.godot/imported/fish.png-42464b3286c66546e495643695c93674.ctex"] +source_file="res://assets/minigames/boss/book.png" +dest_files=["res://.godot/imported/book.png-709e1031418499ee1e219a6cfe63a81f.ctex"] [params] diff --git a/assets/minigames/boss/boss_icon.png b/assets/minigames/boss/boss_icon.png new file mode 100644 index 00000000..7195ced1 Binary files /dev/null and b/assets/minigames/boss/boss_icon.png differ diff --git a/assets/minigames/fish/fish_icon.png.import b/assets/minigames/boss/boss_icon.png.import similarity index 76% rename from assets/minigames/fish/fish_icon.png.import rename to assets/minigames/boss/boss_icon.png.import index d9af9299..f152f116 100644 --- a/assets/minigames/fish/fish_icon.png.import +++ b/assets/minigames/boss/boss_icon.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cfnjk06m367r3" -path="res://.godot/imported/fish_icon.png-012f6ca550eaff7cee5972fadead8a4c.ctex" +path="res://.godot/imported/boss_icon.png-5b2d322cc31a1280055a38687232b16c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/fish_icon.png" -dest_files=["res://.godot/imported/fish_icon.png-012f6ca550eaff7cee5972fadead8a4c.ctex"] +source_file="res://assets/minigames/boss/boss_icon.png" +dest_files=["res://.godot/imported/boss_icon.png-5b2d322cc31a1280055a38687232b16c.ctex"] [params] diff --git a/assets/minigames/boss/boss_icon_full.png b/assets/minigames/boss/boss_icon_full.png new file mode 100644 index 00000000..11718060 Binary files /dev/null and b/assets/minigames/boss/boss_icon_full.png differ diff --git a/assets/minigames/fish/fish_icon_full.png.import b/assets/minigames/boss/boss_icon_full.png.import similarity index 75% rename from assets/minigames/fish/fish_icon_full.png.import rename to assets/minigames/boss/boss_icon_full.png.import index f913e9b6..febc8168 100644 --- a/assets/minigames/fish/fish_icon_full.png.import +++ b/assets/minigames/boss/boss_icon_full.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bc3e0qths2cvt" -path="res://.godot/imported/fish_icon_full.png-b42bc516f7f80f5d2ea9d993bfe0f8e5.ctex" +path="res://.godot/imported/boss_icon_full.png-d45532a086f85b3514ff97a155166c41.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/fish_icon_full.png" -dest_files=["res://.godot/imported/fish_icon_full.png-b42bc516f7f80f5d2ea9d993bfe0f8e5.ctex"] +source_file="res://assets/minigames/boss/boss_icon_full.png" +dest_files=["res://.godot/imported/boss_icon_full.png-d45532a086f85b3514ff97a155166c41.ctex"] [params] diff --git a/assets/minigames/boss/foreground.png b/assets/minigames/boss/foreground.png new file mode 100644 index 00000000..9527e856 Binary files /dev/null and b/assets/minigames/boss/foreground.png differ diff --git a/assets/minigames/fish/flag.png.import b/assets/minigames/boss/foreground.png.import similarity index 73% rename from assets/minigames/fish/flag.png.import rename to assets/minigames/boss/foreground.png.import index 075f85f7..3715762d 100644 --- a/assets/minigames/fish/flag.png.import +++ b/assets/minigames/boss/foreground.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://bn2u6fp6ve5yw" -path="res://.godot/imported/flag.png-5b35daa8da3dcac3b38d84fde8907d8f.ctex" +uid="uid://7w2e4mo7yssm" +path="res://.godot/imported/foreground.png-6c2554e6685390cee51239dbfa88c3c1.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/flag.png" -dest_files=["res://.godot/imported/flag.png-5b35daa8da3dcac3b38d84fde8907d8f.ctex"] +source_file="res://assets/minigames/boss/foreground.png" +dest_files=["res://.godot/imported/foreground.png-6c2554e6685390cee51239dbfa88c3c1.ctex"] [params] diff --git a/assets/minigames/boss/frame_corner.png b/assets/minigames/boss/frame_corner.png new file mode 100644 index 00000000..dcf31462 Binary files /dev/null and b/assets/minigames/boss/frame_corner.png differ diff --git a/assets/minigames/boss/frame_corner.png.import b/assets/minigames/boss/frame_corner.png.import new file mode 100644 index 00000000..596bce7d --- /dev/null +++ b/assets/minigames/boss/frame_corner.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bk4k8v5yrolt1" +path="res://.godot/imported/frame_corner.png-63662e0fcc6898223ce9b85ff1d1ada3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/minigames/boss/frame_corner.png" +dest_files=["res://.godot/imported/frame_corner.png-63662e0fcc6898223ce9b85ff1d1ada3.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/minigames/boss/frame_side.png b/assets/minigames/boss/frame_side.png new file mode 100644 index 00000000..d13b9476 Binary files /dev/null and b/assets/minigames/boss/frame_side.png differ diff --git a/assets/minigames/boss/frame_side.png.import b/assets/minigames/boss/frame_side.png.import new file mode 100644 index 00000000..7e798737 --- /dev/null +++ b/assets/minigames/boss/frame_side.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://2iib006wpkux" +path="res://.godot/imported/frame_side.png-2b934e692ce8db4b1a389d5f34cff8c0.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/minigames/boss/frame_side.png" +dest_files=["res://.godot/imported/frame_side.png-2b934e692ce8db4b1a389d5f34cff8c0.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/minigames/boss/friends.png b/assets/minigames/boss/friends.png new file mode 100644 index 00000000..780a4395 Binary files /dev/null and b/assets/minigames/boss/friends.png differ diff --git a/assets/minigames/fish/clouds.png.import b/assets/minigames/boss/friends.png.import similarity index 74% rename from assets/minigames/fish/clouds.png.import rename to assets/minigames/boss/friends.png.import index e12a1c9f..9bba56aa 100644 --- a/assets/minigames/fish/clouds.png.import +++ b/assets/minigames/boss/friends.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://batqk810wx2ty" -path="res://.godot/imported/clouds.png-e27b5fe78b25b1015def9ea63858010b.ctex" +uid="uid://cobv0mceg2vb8" +path="res://.godot/imported/friends.png-07df07dc80dfd7cfcf913b0eea5eba40.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/clouds.png" -dest_files=["res://.godot/imported/clouds.png-e27b5fe78b25b1015def9ea63858010b.ctex"] +source_file="res://assets/minigames/boss/friends.png" +dest_files=["res://.godot/imported/friends.png-07df07dc80dfd7cfcf913b0eea5eba40.ctex"] [params] diff --git a/assets/minigames/boss/kalulu_sheet.png b/assets/minigames/boss/kalulu_sheet.png new file mode 100644 index 00000000..0e18c4fa Binary files /dev/null and b/assets/minigames/boss/kalulu_sheet.png differ diff --git a/assets/minigames/boss/kalulu_sheet.png.import b/assets/minigames/boss/kalulu_sheet.png.import new file mode 100644 index 00000000..3010a573 --- /dev/null +++ b/assets/minigames/boss/kalulu_sheet.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bp3t4elur5y1y" +path="res://.godot/imported/kalulu_sheet.png-a82ac9402c5205b4531b3cd17bec0bc7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/minigames/boss/kalulu_sheet.png" +dest_files=["res://.godot/imported/kalulu_sheet.png-a82ac9402c5205b4531b3cd17bec0bc7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/minigames/boss/sun.png b/assets/minigames/boss/sun.png new file mode 100644 index 00000000..5ed63820 Binary files /dev/null and b/assets/minigames/boss/sun.png differ diff --git a/assets/minigames/fish/sun.png.import b/assets/minigames/boss/sun.png.import similarity index 77% rename from assets/minigames/fish/sun.png.import rename to assets/minigames/boss/sun.png.import index 615574b9..c95869b4 100644 --- a/assets/minigames/fish/sun.png.import +++ b/assets/minigames/boss/sun.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bf7od6f56f516" -path="res://.godot/imported/sun.png-5f5a91b121b9dc732b9d17478f543374.ctex" +path="res://.godot/imported/sun.png-dfa55dd52b824f292c3e99dd864a9f89.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/sun.png" -dest_files=["res://.godot/imported/sun.png-5f5a91b121b9dc732b9d17478f543374.ctex"] +source_file="res://assets/minigames/boss/sun.png" +dest_files=["res://.godot/imported/sun.png-dfa55dd52b824f292c3e99dd864a9f89.ctex"] [params] diff --git a/assets/minigames/boss/text_box_long.png b/assets/minigames/boss/text_box_long.png new file mode 100644 index 00000000..9159585b Binary files /dev/null and b/assets/minigames/boss/text_box_long.png differ diff --git a/assets/minigames/boss/text_box_long.png.import b/assets/minigames/boss/text_box_long.png.import new file mode 100644 index 00000000..c0b77d39 --- /dev/null +++ b/assets/minigames/boss/text_box_long.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cdmfxx6kt5tla" +path="res://.godot/imported/text_box_long.png-c072665becb3889915217183915e2a64.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/minigames/boss/text_box_long.png" +dest_files=["res://.godot/imported/text_box_long.png-c072665becb3889915217183915e2a64.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/minigames/boss/text_box_long_outline_dotted.png b/assets/minigames/boss/text_box_long_outline_dotted.png new file mode 100644 index 00000000..f37b5535 Binary files /dev/null and b/assets/minigames/boss/text_box_long_outline_dotted.png differ diff --git a/assets/minigames/fish/beacon_spritesheet.png.import b/assets/minigames/boss/text_box_long_outline_dotted.png.import similarity index 69% rename from assets/minigames/fish/beacon_spritesheet.png.import rename to assets/minigames/boss/text_box_long_outline_dotted.png.import index 94680370..ba430de2 100644 --- a/assets/minigames/fish/beacon_spritesheet.png.import +++ b/assets/minigames/boss/text_box_long_outline_dotted.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://byl2f1xlwvc57" -path="res://.godot/imported/beacon_spritesheet.png-359d5f094db1ff7781ba4e2df4384ab6.ctex" +uid="uid://bs1twkddxu31y" +path="res://.godot/imported/text_box_long_outline_dotted.png-fb9c3aa3bc07c3ddb16a444d48552d6d.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/minigames/fish/beacon_spritesheet.png" -dest_files=["res://.godot/imported/beacon_spritesheet.png-359d5f094db1ff7781ba4e2df4384ab6.ctex"] +source_file="res://assets/minigames/boss/text_box_long_outline_dotted.png" +dest_files=["res://.godot/imported/text_box_long_outline_dotted.png-fb9c3aa3bc07c3ddb16a444d48552d6d.ctex"] [params] diff --git a/assets/minigames/fish/background.png b/assets/minigames/fish/background.png deleted file mode 100644 index 86b0a031..00000000 Binary files a/assets/minigames/fish/background.png and /dev/null differ diff --git a/assets/minigames/fish/beacon_spritesheet.png b/assets/minigames/fish/beacon_spritesheet.png deleted file mode 100644 index 929f7c25..00000000 Binary files a/assets/minigames/fish/beacon_spritesheet.png and /dev/null differ diff --git a/assets/minigames/fish/clouds.png b/assets/minigames/fish/clouds.png deleted file mode 100644 index 704d3ac5..00000000 Binary files a/assets/minigames/fish/clouds.png and /dev/null differ diff --git a/assets/minigames/fish/fish.png b/assets/minigames/fish/fish.png deleted file mode 100644 index 0e405eac..00000000 Binary files a/assets/minigames/fish/fish.png and /dev/null differ diff --git a/assets/minigames/fish/fish_icon.png b/assets/minigames/fish/fish_icon.png deleted file mode 100644 index 60473704..00000000 Binary files a/assets/minigames/fish/fish_icon.png and /dev/null differ diff --git a/assets/minigames/fish/fish_icon_full.png b/assets/minigames/fish/fish_icon_full.png deleted file mode 100644 index ce7e8a76..00000000 Binary files a/assets/minigames/fish/fish_icon_full.png and /dev/null differ diff --git a/assets/minigames/fish/fish_spritesheet.png b/assets/minigames/fish/fish_spritesheet.png deleted file mode 100644 index 56b0a038..00000000 Binary files a/assets/minigames/fish/fish_spritesheet.png and /dev/null differ diff --git a/assets/minigames/fish/fish_spritesheet.png.import b/assets/minigames/fish/fish_spritesheet.png.import deleted file mode 100644 index 30568bc0..00000000 --- a/assets/minigames/fish/fish_spritesheet.png.import +++ /dev/null @@ -1,40 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://38km75eecaly" -path="res://.godot/imported/fish_spritesheet.png-8cd427a8b4d96632119cee4132f0236a.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/minigames/fish/fish_spritesheet.png" -dest_files=["res://.godot/imported/fish_spritesheet.png-8cd427a8b4d96632119cee4132f0236a.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/uastc_level=0 -compress/rdo_quality_loss=0.0 -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/channel_remap/red=0 -process/channel_remap/green=1 -process/channel_remap/blue=2 -process/channel_remap/alpha=3 -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/minigames/fish/flag.png b/assets/minigames/fish/flag.png deleted file mode 100644 index 72517398..00000000 Binary files a/assets/minigames/fish/flag.png and /dev/null differ diff --git a/assets/minigames/fish/image_ref_pour_callage_balise.png b/assets/minigames/fish/image_ref_pour_callage_balise.png deleted file mode 100644 index b5078c0d..00000000 Binary files a/assets/minigames/fish/image_ref_pour_callage_balise.png and /dev/null differ diff --git a/assets/minigames/fish/image_ref_pour_callage_balise.png.import b/assets/minigames/fish/image_ref_pour_callage_balise.png.import deleted file mode 100644 index dfc28ea6..00000000 --- a/assets/minigames/fish/image_ref_pour_callage_balise.png.import +++ /dev/null @@ -1,40 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bljxpoaleydur" -path="res://.godot/imported/image_ref_pour_callage_balise.png-e3d5e0c61f0466237c40fe68e6262020.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/minigames/fish/image_ref_pour_callage_balise.png" -dest_files=["res://.godot/imported/image_ref_pour_callage_balise.png-e3d5e0c61f0466237c40fe68e6262020.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/uastc_level=0 -compress/rdo_quality_loss=0.0 -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/channel_remap/red=0 -process/channel_remap/green=1 -process/channel_remap/blue=2 -process/channel_remap/alpha=3 -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/minigames/fish/sea.png b/assets/minigames/fish/sea.png deleted file mode 100644 index ffe2de3b..00000000 Binary files a/assets/minigames/fish/sea.png and /dev/null differ diff --git a/assets/minigames/fish/sun.png b/assets/minigames/fish/sun.png deleted file mode 100644 index 53b56628..00000000 Binary files a/assets/minigames/fish/sun.png and /dev/null differ diff --git a/assets/minigames/fish/textplank.png b/assets/minigames/fish/textplank.png deleted file mode 100644 index bcdbec61..00000000 Binary files a/assets/minigames/fish/textplank.png and /dev/null differ diff --git a/assets/minigames/fish/textplank.png.import b/assets/minigames/fish/textplank.png.import deleted file mode 100644 index a611780c..00000000 --- a/assets/minigames/fish/textplank.png.import +++ /dev/null @@ -1,40 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://disgg14rdmp81" -path="res://.godot/imported/textplank.png-633f961db8efc9ef0e304ac053237161.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/minigames/fish/textplank.png" -dest_files=["res://.godot/imported/textplank.png-633f961db8efc9ef0e304ac053237161.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/uastc_level=0 -compress/rdo_quality_loss=0.0 -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/channel_remap/red=0 -process/channel_remap/green=1 -process/channel_remap/blue=2 -process/channel_remap/alpha=3 -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/vfx/cloud_01.png b/assets/vfx/smoke_01.png similarity index 100% rename from assets/vfx/cloud_01.png rename to assets/vfx/smoke_01.png diff --git a/assets/vfx/cloud_01.png.import b/assets/vfx/smoke_01.png.import similarity index 77% rename from assets/vfx/cloud_01.png.import rename to assets/vfx/smoke_01.png.import index f4fc31b9..635c17ef 100644 --- a/assets/vfx/cloud_01.png.import +++ b/assets/vfx/smoke_01.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bhlxctbycwwg6" -path="res://.godot/imported/cloud_01.png-32dc78f9e69c8eac0647d4b7abf08207.ctex" +path="res://.godot/imported/smoke_01.png-82b26933307a098563c0b2b8bd66b2b2.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/vfx/cloud_01.png" -dest_files=["res://.godot/imported/cloud_01.png-32dc78f9e69c8eac0647d4b7abf08207.ctex"] +source_file="res://assets/vfx/smoke_01.png" +dest_files=["res://.godot/imported/smoke_01.png-82b26933307a098563c0b2b8bd66b2b2.ctex"] [params] diff --git a/assets/vfx/cloud_02.png b/assets/vfx/smoke_02.png similarity index 100% rename from assets/vfx/cloud_02.png rename to assets/vfx/smoke_02.png diff --git a/assets/vfx/cloud_02.png.import b/assets/vfx/smoke_02.png.import similarity index 77% rename from assets/vfx/cloud_02.png.import rename to assets/vfx/smoke_02.png.import index a5e0f370..bdec1690 100644 --- a/assets/vfx/cloud_02.png.import +++ b/assets/vfx/smoke_02.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dybj3kcr7txvb" -path="res://.godot/imported/cloud_02.png-455ed8a96939069721e8e2d84fcdae8f.ctex" +path="res://.godot/imported/smoke_02.png-335175399860ba40e4730b977e81f43e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/vfx/cloud_02.png" -dest_files=["res://.godot/imported/cloud_02.png-455ed8a96939069721e8e2d84fcdae8f.ctex"] +source_file="res://assets/vfx/smoke_02.png" +dest_files=["res://.godot/imported/smoke_02.png-335175399860ba40e4730b977e81f43e.ctex"] [params] diff --git a/assets/vfx/cloud_03.png b/assets/vfx/smoke_03.png similarity index 100% rename from assets/vfx/cloud_03.png rename to assets/vfx/smoke_03.png diff --git a/assets/vfx/cloud_03.png.import b/assets/vfx/smoke_03.png.import similarity index 77% rename from assets/vfx/cloud_03.png.import rename to assets/vfx/smoke_03.png.import index 49eaa636..f0607f8e 100644 --- a/assets/vfx/cloud_03.png.import +++ b/assets/vfx/smoke_03.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dnaq6ormhmw3k" -path="res://.godot/imported/cloud_03.png-32ef369617d2b537fa699a2d224e4469.ctex" +path="res://.godot/imported/smoke_03.png-3233c8e650c9d74716c9e8db0eba0a0f.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/vfx/cloud_03.png" -dest_files=["res://.godot/imported/cloud_03.png-32ef369617d2b537fa699a2d224e4469.ctex"] +source_file="res://assets/vfx/smoke_03.png" +dest_files=["res://.godot/imported/smoke_03.png-3233c8e650c9d74716c9e8db0eba0a0f.ctex"] [params] diff --git a/sources/gardens/boss_button.tscn b/sources/gardens/boss_button.tscn index c72a99c0..b0f6b52f 100644 --- a/sources/gardens/boss_button.tscn +++ b/sources/gardens/boss_button.tscn @@ -7,7 +7,7 @@ [ext_resource type="Script" uid="uid://bbjhs5nta7xxj" path="res://sources/gardens/boss_button.gd" id="5_3d6pj"] [ext_resource type="Texture2D" uid="uid://dwk8xgv3xsmm0" path="res://assets/theme/button_center.svg" id="6_o0qkw"] [ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="7_rtwam"] -[ext_resource type="Texture2D" uid="uid://cfnjk06m367r3" path="res://assets/minigames/fish/fish_icon.png" id="8_oy4mt"] +[ext_resource type="Texture2D" uid="uid://cfnjk06m367r3" path="res://assets/minigames/boss/boss_icon.png" id="8_oy4mt"] [node name="BossButton" type="TextureButton" unique_id=1297494779] z_index = 2 diff --git a/sources/gardens/flower_particle.tscn b/sources/gardens/flower_particle.tscn index abad9a5e..b865d6f6 100644 --- a/sources/gardens/flower_particle.tscn +++ b/sources/gardens/flower_particle.tscn @@ -1,10 +1,10 @@ [gd_scene format=3 uid="uid://bpfcrbd5pxbtm"] [ext_resource type="Script" uid="uid://bqp3akngv876c" path="res://sources/gardens/flower_particle.gd" id="1_8kusj"] -[ext_resource type="Texture2D" uid="uid://bhlxctbycwwg6" path="res://assets/vfx/cloud_01.png" id="1_osgji"] -[ext_resource type="Texture2D" uid="uid://dybj3kcr7txvb" path="res://assets/vfx/cloud_02.png" id="2_ijsw8"] +[ext_resource type="Texture2D" uid="uid://bhlxctbycwwg6" path="res://assets/vfx/smoke_01.png" id="1_osgji"] +[ext_resource type="Texture2D" uid="uid://dybj3kcr7txvb" path="res://assets/vfx/smoke_02.png" id="2_ijsw8"] [ext_resource type="AudioStream" uid="uid://cusw38jbclkxs" path="res://assets/sfx/ui_fertilizer_random_02.mp3" id="3_hopxg"] -[ext_resource type="Texture2D" uid="uid://dnaq6ormhmw3k" path="res://assets/vfx/cloud_03.png" id="3_wp5xb"] +[ext_resource type="Texture2D" uid="uid://dnaq6ormhmw3k" path="res://assets/vfx/smoke_03.png" id="3_wp5xb"] [ext_resource type="AudioStream" uid="uid://cxt1fou1408wb" path="res://assets/sfx/ui_fertilizer_random_01.mp3" id="4_0jd3r"] [ext_resource type="AudioStream" uid="uid://bgpe512komo6r" path="res://assets/sfx/ui_fertilizer_random_03.mp3" id="4_3jfcb"] [ext_resource type="AudioStream" uid="uid://bnl2tymireca3" path="res://assets/sfx/ui_fertilizer_random_04.mp3" id="5_oxx05"] diff --git a/sources/gardens/gardens.gd b/sources/gardens/gardens.gd index acd6164f..8fb53716 100644 --- a/sources/gardens/gardens.gd +++ b/sources/gardens/gardens.gd @@ -7,6 +7,7 @@ const KALULU: GDScript = preload("res://sources/minigames/base/kalulu.gd") const GARDEN_SCENE: PackedScene = preload("res://resources/gardens/garden.tscn") const LOOK_AND_LEARN_SCENE: PackedScene = preload("res://sources/look_and_learn/look_and_learn.tscn") const BOSS_BUTTON_SCENE: PackedScene = preload("res://sources/gardens/boss_button.tscn") +const BOSS_MINIGAME_SCENE_PATH: String = "res://sources/minigames/boss/boss_minigame.tscn" const FLOWER_VFX: PackedScene = preload("res://sources/gardens/flower_particle.tscn") const GARDEN_SIZE: int = 2400 const GARDEN_TEXTURES_NB: int = 20 @@ -1309,7 +1310,7 @@ func _on_boss_button_pressed(lesson_number: int, garden_index: int) -> void: skip_minigame_layout = true, boss_gate_lesson = lesson_number } - get_tree().change_scene_to_file("res://sources/minigames/fish/fish_minigame.tscn") + get_tree().change_scene_to_file(BOSS_MINIGAME_SCENE_PATH) func _on_final_boss_button_pressed(lesson_number: int, garden_index: int) -> void: @@ -1326,7 +1327,7 @@ func _on_final_boss_button_pressed(lesson_number: int, garden_index: int) -> voi boss_gate_lesson = lesson_number, is_final_boss = true } - get_tree().change_scene_to_file("res://sources/minigames/fish/fish_minigame.tscn") + get_tree().change_scene_to_file(BOSS_MINIGAME_SCENE_PATH) func _on_minigame_button_pressed(minigame_scene: PackedScene, minigame_number: int) -> void: diff --git a/sources/gardens/gardens.tscn b/sources/gardens/gardens.tscn index ef1c87f4..e2e362da 100644 --- a/sources/gardens/gardens.tscn +++ b/sources/gardens/gardens.tscn @@ -21,8 +21,8 @@ [ext_resource type="Texture2D" uid="uid://re7qgivb3n5w" path="res://assets/minigames/frog/graphics/gauge_icon_frog_full.png" id="10_5wvwc"] [ext_resource type="PackedScene" uid="uid://dpp3bpy1v80jk" path="res://sources/minigames/penguin/penguin_minigame.tscn" id="10_l1gcl"] [ext_resource type="Texture2D" uid="uid://nwbekpbuu472" path="res://assets/minigames/ants/graphics/gauge_icon_ant_full.png" id="12_ohgqx"] -[ext_resource type="PackedScene" uid="uid://df5derhil64ca" path="res://sources/minigames/fish/fish_minigame.tscn" id="15_6dtg2"] -[ext_resource type="Texture2D" uid="uid://bc3e0qths2cvt" path="res://assets/minigames/fish/fish_icon_full.png" id="16_5rwfp"] +[ext_resource type="PackedScene" uid="uid://df5derhil64ca" path="res://sources/minigames/boss/boss_minigame.tscn" id="15_6dtg2"] +[ext_resource type="Texture2D" uid="uid://bc3e0qths2cvt" path="res://assets/minigames/boss/boss_icon_full.png" id="16_5rwfp"] [ext_resource type="Texture2D" uid="uid://bmdhpgxmur1vo" path="res://assets/minigames/caterpillar/graphics/gauge_icon_caterpillar_full.png" id="16_prl1o"] [ext_resource type="AudioStream" uid="uid://4bv1hr6r68op" path="res://assets/gardens/ui_transition_right.mp3" id="17_37f6y"] [ext_resource type="Texture2D" uid="uid://rnqme2j272qf" path="res://assets/minigames/turtles/graphic/gauge_icon_turtle_full.png" id="18_12pcf"] diff --git a/sources/minigames/fish/fish_minigame.gd b/sources/minigames/boss/boss_minigame.gd similarity index 68% rename from sources/minigames/fish/fish_minigame.gd rename to sources/minigames/boss/boss_minigame.gd index b280f4ab..63203678 100644 --- a/sources/minigames/fish/fish_minigame.gd +++ b/sources/minigames/boss/boss_minigame.gd @@ -1,8 +1,5 @@ extends Minigame -signal beacon_fish_dropped(is_answered_real: bool) - -const FISH_TEXTURE_RECT_SCENE: PackedScene = preload("res://sources/minigames/fish/fish_texture_rect.tscn") const FINAL_BOSS_GAME_DURATION: int = 20 * 60 const FINAL_BOSS_TOTAL_WORDS: int = 180 @@ -11,7 +8,7 @@ const FINAL_BOSS_TOTAL_WORDS: int = 180 @export var winning_color: Color = Color.WHITE @export var max_words_count: int = 15 -var tween: Tween +var sun_tween: Tween var words_to_present: Array[String] = [] var words_to_present_next: Array[String] = [] var progress_gauge_max_margin: float = 0.95 @@ -19,52 +16,57 @@ var total_number_of_words: int = 30 var tutorial_count: int = 0 var _boss_session_index: int = -1 var _boss_answer_start_ms: int = 0 +var default_label_settings: LabelSettings +var default_label_background_color: Color -@onready var fish_start_zone: Control = %FishStartZone -@onready var beacon1: SpriteControl = %Beacon1 -@onready var beacon2: SpriteControl = %Beacon2 +@onready var text_start_zone: Control = %ControlText +@onready var texture_button_bin: TextureButton = $GameRoot/TextureButtonBin +@onready var texture_button_book: TextureButton = $GameRoot/TextureButtonBook @onready var path_follow: PathFollow2D = %PathFollow2D +@onready var texture_rect_text_box: TextureRect = %TextureRectTextBox @onready var label: Label = %Label -@onready var false_wrong_fx: WrongFX = %FalseWrongFX -@onready var false_right_fx: RightFX = %FalseRightFX -@onready var real_wrong_fx: WrongFX = %RealWrongFX -@onready var real_right_fx: RightFX = %RealRightFX -@onready var fish_animated_sprite: AnimatedSprite2D = %FishAnimatedSprite @onready var progress_gauge: PercentMarginContainer = %ProgressionGaugePercentMarginContainer @onready var progress_gauge_goal: PercentMarginContainer = %ProgressionGaugeGoalPercentMarginContainer2 @onready var progress_gauge_internal: NinePatchRect = %ProgressionGaugeInternal @onready var adult_block: AdultBlock = %AdultBlock - - -func _fish_get_drag_data(_at_position: Vector2) -> Variant: - var fish_texture_rect: Control = FISH_TEXTURE_RECT_SCENE.instantiate() - fish_texture_rect.size = Vector2(200, 200) - set_drag_preview(fish_texture_rect) - return true +@onready var kalulu_boss: KaluluBoss = %KaluluBoss +@onready var wrong_fx: WrongFX = %WrongFX +@onready var right_stars: RightStarsFX = $GameRoot/Right_Stars func _ready() -> void: super() if adult_block and adult_block.has_signal("unlocked"): adult_block.unlocked.connect(_on_adult_block_unlocked) - fish_start_zone.set_drag_forwarding(_fish_get_drag_data, Callable(), Callable()) - (beacon1 as Control).set_drag_forwarding(Callable(), _beacon_can_drop_data, _beacon1_drop_data) - (beacon2 as Control).set_drag_forwarding(Callable(), _beacon_can_drop_data, _beacon2_drop_data) + text_start_zone.set_drag_forwarding(_text_get_drag_data, Callable(), Callable()) + (texture_button_bin as Control).set_drag_forwarding(Callable(), _button_can_drop_data, _button_bin_drop_data) + (texture_button_book as Control).set_drag_forwarding(Callable(), _button_can_drop_data, _button_book_drop_data) minigame_ui.progression_container.hide() minigame_ui.progression_gauge.hide() label.hide() @warning_ignore("UNSAFE_PROPERTY_ACCESS") progress_gauge_max_margin = progress_gauge.margin_top_ratio + default_label_settings = label.label_settings + default_label_background_color = texture_rect_text_box.self_modulate + # Skips the whole tutorial if UserDataManager.is_speech_played(Type.keys()[minigame_name] as String): tutorial_count = 2 +func _text_get_drag_data(_at_position: Vector2) -> Variant: + var duplicated: Control = text_start_zone.duplicate() + duplicated.set_scale(Vector2(0.6, 0.6)) + duplicated.set_modulate(Color(1, 1, 1, 0.4)) + set_drag_preview(duplicated) + return true + + func _find_stimuli_and_distractions() -> void: var data_array: Array[Dictionary] = Database.get_pseudowords_for_lesson(lesson_nb) if data_array.size() <= 0: - Log.error("FishMinigame: Cannot start fish minigame since data is empty for lesson %d" % lesson_nb) + Log.error("BossMinigame: Cannot start boss minigame since data is empty for lesson %d" % lesson_nb) return data_array.shuffle() if is_final_boss: @@ -97,10 +99,10 @@ func _find_stimuli_and_distractions() -> void: func _start() -> void: super() if _is_boss_session() and _boss_session_index == -1: - _boss_session_index = UserDataManager.start_boss_session(Time.get_unix_time_from_system()) - tween = create_tween() - tween.tween_property(path_follow, "progress_ratio", 1, game_duration) - tween.finished.connect(_on_time_out) + _boss_session_index = UserDataManager.start_boss_session(int(Time.get_unix_time_from_system())) + sun_tween = create_tween() + sun_tween.tween_property(path_follow, "progress_ratio", 1, game_duration) + sun_tween.finished.connect(_on_time_out) _present_next_word() @@ -129,23 +131,32 @@ func _on_time_out() -> void: _lose() -func _beacon_can_drop_data(_at_position: Vector2, data: Variant) -> bool: +func _button_can_drop_data(_at_position: Vector2, data: Variant) -> bool: return data -func _beacon1_drop_data(_at_position: Vector2, _data: Variant) -> void: - fish_animated_sprite.play("left") - await fish_animated_sprite.animation_finished - beacon_fish_dropped.emit(false) +func _button_bin_drop_data(_at_position: Vector2, _data: Variant) -> void: + _on_answer_dropped(false) -func _beacon2_drop_data(_at_position: Vector2, _data: Variant) -> void: - fish_animated_sprite.play("right") - await fish_animated_sprite.animation_finished - beacon_fish_dropped.emit(true) +func _button_book_drop_data(_at_position: Vector2, _data: Variant) -> void: + _on_answer_dropped(true) -func _on_beacon_fish_dropped(is_answered_real: bool) -> void: +func _on_texture_button_bin_pressed() -> void: + _on_answer_dropped(false) + + +func _on_texture_button_book_pressed() -> void: + _on_answer_dropped(true) + + +func _on_answer_dropped(is_answered_real: bool) -> void: + if words_to_present.size() < 1: + Log.error("BossMinigame: Cannot process answer because there is no words to present") + return + texture_button_bin.set_disabled(true) + texture_button_book.set_disabled(true) var is_really_real: bool = words_to_present[0] in stimuli var is_correct: bool = is_answered_real == is_really_real var response_log: Dictionary = {"word": words_to_present[0], "is_real_answer": is_answered_real} @@ -161,10 +172,15 @@ func _on_beacon_fish_dropped(is_answered_real: bool) -> void: is_correct ) if is_correct: + label.label_settings = label.label_settings.duplicate() + label.label_settings.font_color = Minigame.LABEL_COLOR_NEUTRAL + texture_rect_text_box.self_modulate = Minigame.LABEL_COLOR_WIN if is_answered_real: - real_right_fx.play() + right_stars.global_position = texture_button_book.global_position + texture_button_book.get_size() / 2 + right_stars.replay() else: - false_right_fx.play() + right_stars.global_position = texture_button_bin.global_position + texture_button_bin.get_size() / 2 + right_stars.replay() words_to_present.pop_front() if tutorial_count == 0: var speech: AudioStreamMP3 = Database.load_external_sound(Database.get_kalulu_speech_path(Type.keys()[minigame_name] as String, "win_test_game_first_word")) @@ -178,9 +194,11 @@ func _on_beacon_fish_dropped(is_answered_real: bool) -> void: tutorial_count += 1 else: if is_answered_real: - real_wrong_fx.play() + wrong_fx.global_position = texture_button_book.global_position + texture_button_book.get_size() / 2 + wrong_fx.play() else: - false_wrong_fx.play() + wrong_fx.global_position = texture_button_bin.global_position + texture_button_bin.get_size() / 2 + wrong_fx.play() words_to_present_next.append(words_to_present.pop_front()) if tutorial_count == 0: var speech: AudioStreamMP3 = Database.load_external_sound(Database.get_kalulu_speech_path(Type.keys()[minigame_name] as String, "lose_test_game_first_word")) @@ -192,6 +210,11 @@ func _on_beacon_fish_dropped(is_answered_real: bool) -> void: minigame_ui.play_kalulu_speech(speech) await minigame_ui.kalulu_speech_ended tutorial_count += 1 + await get_tree().create_timer(1).timeout + label.label_settings = default_label_settings + texture_rect_text_box.self_modulate = default_label_background_color + texture_button_bin.set_disabled(false) + texture_button_book.set_disabled(false) _update_progression_gauge() _present_next_word() @@ -206,10 +229,6 @@ func _get_win_ratio() -> float: return 1. - float(words_to_present.size() + words_to_present_next.size()) / total_number_of_words -func _on_fish_animated_sprite_animation_finished() -> void: - fish_animated_sprite.play("idle") - - func _ensure_words_to_present_count(target_count: int) -> void: if words_to_present.is_empty(): return @@ -233,12 +252,14 @@ func _on_adult_block_unlocked() -> void: func _win() -> void: if _is_boss_session() and _boss_session_index >= 0: UserDataManager.finish_boss_session(_boss_session_index, true) + await kalulu_boss.happy() await super() func _lose() -> void: if _is_boss_session() and _boss_session_index >= 0: UserDataManager.finish_boss_session(_boss_session_index, false) + await kalulu_boss.sad() await super() diff --git a/sources/minigames/fish/fish_minigame.gd.uid b/sources/minigames/boss/boss_minigame.gd.uid similarity index 100% rename from sources/minigames/fish/fish_minigame.gd.uid rename to sources/minigames/boss/boss_minigame.gd.uid diff --git a/sources/minigames/boss/boss_minigame.tscn b/sources/minigames/boss/boss_minigame.tscn new file mode 100644 index 00000000..b266ee86 --- /dev/null +++ b/sources/minigames/boss/boss_minigame.tscn @@ -0,0 +1,248 @@ +[gd_scene format=3 uid="uid://df5derhil64ca"] + +[ext_resource type="PackedScene" uid="uid://8awe4usnucyv" path="res://sources/minigames/base/base_minigame.tscn" id="1_itrpi"] +[ext_resource type="Script" uid="uid://dgodk76761a1n" path="res://sources/minigames/boss/boss_minigame.gd" id="2_68jip"] +[ext_resource type="Texture2D" uid="uid://ccfocxdqxujvc" path="res://assets/minigames/boss/background.png" id="3_3ty3i"] +[ext_resource type="Texture2D" uid="uid://bf7od6f56f516" path="res://assets/minigames/boss/sun.png" id="4_2m0ff"] +[ext_resource type="Texture2D" uid="uid://bk4k8v5yrolt1" path="res://assets/minigames/boss/frame_corner.png" id="5_xo63t"] +[ext_resource type="Texture2D" uid="uid://2iib006wpkux" path="res://assets/minigames/boss/frame_side.png" id="6_2c6ay"] +[ext_resource type="Texture2D" uid="uid://cax5nncivwq4" path="res://assets/minigames/boss/bin.png" id="7_wij1o"] +[ext_resource type="Texture2D" uid="uid://xukdk8dobsqy" path="res://assets/minigames/boss/book.png" id="8_mkvne"] +[ext_resource type="Texture2D" uid="uid://dxqnvbr4tffn7" path="res://assets/minigames/minigame_ui/graphic/gauge.png" id="11_p5wnc"] +[ext_resource type="Texture2D" uid="uid://7w2e4mo7yssm" path="res://assets/minigames/boss/foreground.png" id="12_2c6ay"] +[ext_resource type="Texture2D" uid="uid://4ci6gmg0c15o" path="res://assets/minigames/minigame_ui/graphic/white_gauge.png" id="12_w5m1b"] +[ext_resource type="Script" uid="uid://d5qkkg88431w" path="res://sources/utils/percent_margin_container.gd" id="14_b3ilp"] +[ext_resource type="Texture2D" uid="uid://bs1twkddxu31y" path="res://assets/minigames/boss/text_box_long_outline_dotted.png" id="15_kvjsk"] +[ext_resource type="Texture2D" uid="uid://cdmfxx6kt5tla" path="res://assets/minigames/boss/text_box_long.png" id="16_sndot"] +[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="17_47luc"] +[ext_resource type="PackedScene" uid="uid://dpfn2ag2xv24s" path="res://sources/minigames/boss/kalulu_boss.tscn" id="17_kvjsk"] +[ext_resource type="PackedScene" uid="uid://b7rx6esglyd6c" path="res://sources/menus/adult_block/adult_block.tscn" id="18_4v0wd"] +[ext_resource type="Texture2D" uid="uid://cobv0mceg2vb8" path="res://assets/minigames/boss/friends.png" id="18_kvjsk"] +[ext_resource type="PackedScene" uid="uid://cs6g7fhc0bjvh" path="res://sources/utils/fx/right_stars.tscn" id="19_b2wqe"] +[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="19_wi3c5"] + +[sub_resource type="Curve2D" id="Curve2D_8d1qx"] +_data = { +"points": PackedVector2Array(-668.987, 450.107, 668.987, -450.107, 544, 469, 0, 0, 0, 0, 2188, 358) +} +point_count = 2 + +[node name="FishMinigame" unique_id=1178378052 instance=ExtResource("1_itrpi")] +script = ExtResource("2_68jip") +game_duration = 240 +minimum_correct_ratio = 0.8 +winning_color = Color(2.988, 2.328, 0.6, 1) +max_words_count = 15 +minigame_name = 9 +lesson_nb = 50 + +[node name="MinigameUI" parent="." index="1" unique_id=1199249440] +stimulus_button_visible = false + +[node name="Background" type="TextureRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="0" unique_id=1937666021] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = ExtResource("3_3ty3i") + +[node name="Path2D" type="Path2D" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="1" unique_id=191741591] +position = Vector2(0, -128) +curve = SubResource("Curve2D_8d1qx") + +[node name="PathFollow2D" type="PathFollow2D" parent="GameRoot/Path2D" index="0" unique_id=699263217] +unique_name_in_owner = true +position = Vector2(544, 469) +rotates = false +loop = false + +[node name="Sprite2DSun" type="Sprite2D" parent="GameRoot/Path2D/PathFollow2D" index="0" unique_id=2147097806] +texture = ExtResource("4_2m0ff") + +[node name="Frame" type="Node2D" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="2" unique_id=1674444498] +position = Vector2(1080, 720) +scale = Vector2(0.9, 0.9) + +[node name="FrameCornerTopLeft" type="Sprite2D" parent="GameRoot/Frame" index="0" unique_id=1469888637] +position = Vector2(-414, -248) +texture = ExtResource("5_xo63t") + +[node name="FrameCornerTopRight" type="Sprite2D" parent="GameRoot/Frame" index="1" unique_id=1229381705] +position = Vector2(925, -248) +texture = ExtResource("5_xo63t") +flip_h = true + +[node name="FrameCornerBottomLeft" type="Sprite2D" parent="GameRoot/Frame" index="2" unique_id=444932802] +position = Vector2(-414, 618) +texture = ExtResource("5_xo63t") +flip_v = true + +[node name="FrameCornerBottomRight" type="Sprite2D" parent="GameRoot/Frame" index="3" unique_id=2108262795] +position = Vector2(925, 618) +texture = ExtResource("5_xo63t") +flip_h = true +flip_v = true + +[node name="FrameSideLeft" type="Sprite2D" parent="GameRoot/Frame" index="4" unique_id=1062856773] +position = Vector2(-719, 185) +texture = ExtResource("6_2c6ay") + +[node name="FrameSideRight" type="Sprite2D" parent="GameRoot/Frame" index="5" unique_id=196742069] +position = Vector2(1230, 185) +texture = ExtResource("6_2c6ay") + +[node name="FrameSideTop" type="Sprite2D" parent="GameRoot/Frame" index="6" unique_id=2088744094] +position = Vector2(256, -438) +rotation = 1.5707964 +scale = Vector2(1, 1.6) +texture = ExtResource("6_2c6ay") + +[node name="FrameSideBottom" type="Sprite2D" parent="GameRoot/Frame" index="7" unique_id=94970992] +position = Vector2(255.5, 808) +rotation = 1.5707964 +scale = Vector2(1, 1.6) +texture = ExtResource("6_2c6ay") + +[node name="TextureButtonBin" type="TextureButton" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="3" unique_id=852671648] +layout_mode = 0 +offset_left = 320.0 +offset_top = 768.0 +offset_right = 320.0 +offset_bottom = 768.0 +mouse_default_cursor_shape = 2 +texture_normal = ExtResource("7_wij1o") + +[node name="TextureButtonBook" type="TextureButton" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="4" unique_id=22079276] +layout_mode = 0 +offset_left = 2064.0 +offset_top = 768.0 +offset_right = 2064.0 +offset_bottom = 768.0 +mouse_default_cursor_shape = 2 +texture_normal = ExtResource("8_mkvne") + +[node name="ProgressionGauge" type="NinePatchRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="5" unique_id=1664248446] +unique_name_in_owner = true +custom_minimum_size = Vector2(64, 64) +layout_mode = 0 +offset_left = 2317.0 +offset_top = 233.0 +offset_right = 2439.0 +offset_bottom = 1599.0 +texture = ExtResource("11_p5wnc") +patch_margin_top = 33 +patch_margin_bottom = 33 + +[node name="ProgressionGaugeGoalPercentMarginContainer2" type="Container" parent="GameRoot/ProgressionGauge" index="0" unique_id=1583570329] +unique_name_in_owner = true +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("14_b3ilp") +margin_top_ratio = 0.19 + +[node name="ProgressionGaugeInternal" type="NinePatchRect" parent="GameRoot/ProgressionGauge/ProgressionGaugeGoalPercentMarginContainer2" index="0" unique_id=1583306416] +layout_mode = 2 +texture = ExtResource("11_p5wnc") +patch_margin_top = 33 +patch_margin_bottom = 33 + +[node name="ProgressionGaugePercentMarginContainer" type="Container" parent="GameRoot/ProgressionGauge" index="1" unique_id=1140040548] +unique_name_in_owner = true +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("14_b3ilp") +margin_top_ratio = 0.95 + +[node name="ProgressionGaugeInternal" type="NinePatchRect" parent="GameRoot/ProgressionGauge/ProgressionGaugePercentMarginContainer" index="0" unique_id=1534553679] +unique_name_in_owner = true +modulate = Color(0.996078, 0.776471, 0.2, 1) +layout_mode = 2 +texture = ExtResource("12_w5m1b") +patch_margin_top = 33 +patch_margin_bottom = 33 + +[node name="Foreground" type="Sprite2D" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="6" unique_id=942294228] +top_level = true +position = Vector2(1872, 424) +texture = ExtResource("12_2c6ay") + +[node name="Friends" type="Sprite2D" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="7" unique_id=888328201] +position = Vector2(1676, 1280) +texture = ExtResource("18_kvjsk") + +[node name="KaluluBoss" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="8" unique_id=1776395621 instance=ExtResource("17_kvjsk")] +unique_name_in_owner = true +position = Vector2(800, 1224) +scale = Vector2(0.7, 0.7) + +[node name="ControlText" type="Control" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="9" unique_id=95008625] +unique_name_in_owner = true +custom_minimum_size = Vector2(1025, 234) +anchors_preset = 0 +offset_left = 792.0 +offset_top = 760.0 +offset_right = 832.0 +offset_bottom = 800.0 +mouse_default_cursor_shape = 6 + +[node name="TextureRectOutlineDotted" type="TextureRect" parent="GameRoot/ControlText" index="0" unique_id=2056405550] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 40.0 +texture = ExtResource("15_kvjsk") +stretch_mode = 2 + +[node name="TextureRectTextBox" type="TextureRect" parent="GameRoot/ControlText/TextureRectOutlineDotted" index="0" unique_id=1202683105] +unique_name_in_owner = true +layout_mode = 0 +offset_left = 32.0 +offset_top = 24.0 +offset_right = 1056.0 +offset_bottom = 257.0 +texture = ExtResource("16_sndot") +stretch_mode = 2 + +[node name="MarginContainer" type="MarginContainer" parent="GameRoot/ControlText/TextureRectOutlineDotted/TextureRectTextBox" index="0" unique_id=415001204] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -24.0 +offset_top = -32.0 +offset_right = -24.0 +offset_bottom = -19.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_right = 30 + +[node name="Label" type="Label" parent="GameRoot/ControlText/TextureRectOutlineDotted/TextureRectTextBox/MarginContainer" index="0" unique_id=1229572097] +unique_name_in_owner = true +layout_mode = 2 +theme_override_font_sizes/font_size = 100 +text = "abc" +label_settings = ExtResource("17_47luc") +horizontal_alignment = 1 + +[node name="WrongFX" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="10" unique_id=81753671 instance=ExtResource("19_wi3c5")] +unique_name_in_owner = true +layout_mode = 0 + +[node name="Right_Stars" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="11" unique_id=749307022 instance=ExtResource("19_b2wqe")] + +[node name="AdultBlock" parent="." index="4" unique_id=1401891944 instance=ExtResource("18_4v0wd")] +unique_name_in_owner = true +visible = false +layout_mode = 1 + +[connection signal="pressed" from="GameRoot/TextureButtonBin" to="." method="_on_texture_button_bin_pressed"] +[connection signal="pressed" from="GameRoot/TextureButtonBook" to="." method="_on_texture_button_book_pressed"] diff --git a/sources/minigames/boss/kalulu_animations.tres b/sources/minigames/boss/kalulu_animations.tres new file mode 100644 index 00000000..71050c2c --- /dev/null +++ b/sources/minigames/boss/kalulu_animations.tres @@ -0,0 +1,250 @@ +[gd_resource type="SpriteFrames" format=3 uid="uid://cqtt3yu6s0txg"] + +[ext_resource type="Texture2D" uid="uid://bp3t4elur5y1y" path="res://assets/minigames/boss/kalulu_sheet.png" id="1_ohaaf"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_2kj8t"] +atlas = ExtResource("1_ohaaf") +region = Rect2(0, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x3lpe"] +atlas = ExtResource("1_ohaaf") +region = Rect2(300, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_df1kv"] +atlas = ExtResource("1_ohaaf") +region = Rect2(600, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pdv78"] +atlas = ExtResource("1_ohaaf") +region = Rect2(900, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xdwm4"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1200, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ditje"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1500, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tlp27"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1800, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0rmwl"] +atlas = ExtResource("1_ohaaf") +region = Rect2(2100, 1200, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pb2ay"] +atlas = ExtResource("1_ohaaf") +region = Rect2(0, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4us0j"] +atlas = ExtResource("1_ohaaf") +region = Rect2(300, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fyue4"] +atlas = ExtResource("1_ohaaf") +region = Rect2(600, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xkf3x"] +atlas = ExtResource("1_ohaaf") +region = Rect2(900, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_elphc"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1200, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yi086"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1500, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x70c6"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1800, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uj4uy"] +atlas = ExtResource("1_ohaaf") +region = Rect2(2100, 0, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ohaaf"] +atlas = ExtResource("1_ohaaf") +region = Rect2(0, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ppesc"] +atlas = ExtResource("1_ohaaf") +region = Rect2(300, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j83lu"] +atlas = ExtResource("1_ohaaf") +region = Rect2(600, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_684vq"] +atlas = ExtResource("1_ohaaf") +region = Rect2(900, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_la1dg"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1200, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_887ys"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1500, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yh6kw"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1800, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pstfo"] +atlas = ExtResource("1_ohaaf") +region = Rect2(2100, 600, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_oxod6"] +atlas = ExtResource("1_ohaaf") +region = Rect2(0, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7pjlf"] +atlas = ExtResource("1_ohaaf") +region = Rect2(300, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i3mjw"] +atlas = ExtResource("1_ohaaf") +region = Rect2(600, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_frscr"] +atlas = ExtResource("1_ohaaf") +region = Rect2(900, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ilx3v"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1200, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pf3y6"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1500, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_meqcb"] +atlas = ExtResource("1_ohaaf") +region = Rect2(1800, 1800, 300, 600) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i7mp3"] +atlas = ExtResource("1_ohaaf") +region = Rect2(2100, 1800, 300, 600) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_2kj8t") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x3lpe") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_df1kv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pdv78") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xdwm4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ditje") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tlp27") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0rmwl") +}], +"loop": false, +"name": &"happy", +"speed": 8.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pb2ay") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4us0j") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fyue4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xkf3x") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_elphc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_yi086") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x70c6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_uj4uy") +}], +"loop": false, +"name": &"idle_1", +"speed": 8.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ohaaf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ppesc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j83lu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_684vq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_la1dg") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_887ys") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_yh6kw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pstfo") +}], +"loop": false, +"name": &"idle_2", +"speed": 8.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_oxod6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7pjlf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i3mjw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_frscr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ilx3v") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pf3y6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_meqcb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i7mp3") +}], +"loop": false, +"name": &"sad", +"speed": 8.0 +}] diff --git a/sources/minigames/boss/kalulu_boss.gd b/sources/minigames/boss/kalulu_boss.gd new file mode 100644 index 00000000..51e73d88 --- /dev/null +++ b/sources/minigames/boss/kalulu_boss.gd @@ -0,0 +1,35 @@ +class_name KaluluBoss +extends AnimatedSprite2D + +var animation_counter: int = 0 +var animation_delay: int = 3 +var animation_random: int = 3 + + +func happy() -> void: + play("happy") + await animation_finished + play("happy") + await animation_finished + + +func sad() -> void: + play("sad") + await animation_finished + await get_tree().create_timer(1).timeout + play_backwards("sad") + await animation_finished + play("idle_1") + + +func _on_animated_sprite_2d_animation_finished() -> void: + match animation: + "idle_1": + animation_counter -= 1 + if animation_counter <= 0: + animation_counter = animation_delay + randi_range(0, animation_random) + play("idle_2") + else: + play("idle_1") + "idle_2": + play("idle_1") diff --git a/sources/minigames/boss/kalulu_boss.gd.uid b/sources/minigames/boss/kalulu_boss.gd.uid new file mode 100644 index 00000000..8a8e0366 --- /dev/null +++ b/sources/minigames/boss/kalulu_boss.gd.uid @@ -0,0 +1 @@ +uid://bkodrvnj0ecae diff --git a/sources/minigames/boss/kalulu_boss.tscn b/sources/minigames/boss/kalulu_boss.tscn new file mode 100644 index 00000000..3968a8d7 --- /dev/null +++ b/sources/minigames/boss/kalulu_boss.tscn @@ -0,0 +1,10 @@ +[gd_scene format=3 uid="uid://dpfn2ag2xv24s"] + +[ext_resource type="SpriteFrames" uid="uid://cqtt3yu6s0txg" path="res://sources/minigames/boss/kalulu_animations.tres" id="1_u7krp"] +[ext_resource type="Script" uid="uid://bkodrvnj0ecae" path="res://sources/minigames/boss/kalulu_boss.gd" id="2_46epb"] + +[node name="KaluluBoss" type="AnimatedSprite2D" unique_id=1776395621] +sprite_frames = ExtResource("1_u7krp") +animation = &"idle_1" +autoplay = "idle_1" +script = ExtResource("2_46epb") diff --git a/sources/minigames/fish/fish_minigame.tscn b/sources/minigames/fish/fish_minigame.tscn deleted file mode 100644 index c446bd48..00000000 --- a/sources/minigames/fish/fish_minigame.tscn +++ /dev/null @@ -1,732 +0,0 @@ -[gd_scene format=3 uid="uid://df5derhil64ca"] - -[ext_resource type="PackedScene" uid="uid://8awe4usnucyv" path="res://sources/minigames/base/base_minigame.tscn" id="1_itrpi"] -[ext_resource type="Script" uid="uid://dgodk76761a1n" path="res://sources/minigames/fish/fish_minigame.gd" id="2_68jip"] -[ext_resource type="Texture2D" uid="uid://ccfocxdqxujvc" path="res://assets/minigames/fish/background.png" id="3_3ty3i"] -[ext_resource type="Texture2D" uid="uid://bf7od6f56f516" path="res://assets/minigames/fish/sun.png" id="4_2m0ff"] -[ext_resource type="Script" uid="uid://bk5oyj8r6aw2h" path="res://sources/utils/sprite_control.gd" id="4_8mkk3"] -[ext_resource type="Texture2D" uid="uid://batqk810wx2ty" path="res://assets/minigames/fish/clouds.png" id="4_ccu1v"] -[ext_resource type="Texture2D" uid="uid://byl2f1xlwvc57" path="res://assets/minigames/fish/beacon_spritesheet.png" id="4_ohn01"] -[ext_resource type="Texture2D" uid="uid://dey247uccopxi" path="res://assets/minigames/fish/sea.png" id="5_dc51h"] -[ext_resource type="Texture2D" uid="uid://38km75eecaly" path="res://assets/minigames/fish/fish_spritesheet.png" id="8_qh4mt"] -[ext_resource type="Texture2D" uid="uid://bn2u6fp6ve5yw" path="res://assets/minigames/fish/flag.png" id="9_2adou"] -[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="9_mcq4c"] -[ext_resource type="Texture2D" uid="uid://dxqnvbr4tffn7" path="res://assets/minigames/minigame_ui/graphic/gauge.png" id="11_p5wnc"] -[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="11_ueo10"] -[ext_resource type="Texture2D" uid="uid://4ci6gmg0c15o" path="res://assets/minigames/minigame_ui/graphic/white_gauge.png" id="12_w5m1b"] -[ext_resource type="Texture2D" uid="uid://disgg14rdmp81" path="res://assets/minigames/fish/textplank.png" id="13_3p0ue"] -[ext_resource type="Script" uid="uid://d5qkkg88431w" path="res://sources/utils/percent_margin_container.gd" id="14_b3ilp"] -[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="17_47luc"] -[ext_resource type="PackedScene" uid="uid://b7rx6esglyd6c" path="res://sources/menus/adult_block/adult_block.tscn" id="18_4v0wd"] - -[sub_resource type="Environment" id="Environment_5bcb7"] -background_mode = 3 -glow_enabled = true - -[sub_resource type="Curve2D" id="Curve2D_8d1qx"] -_data = { -"points": PackedVector2Array(-668.987, 450.107, 668.987, -450.107, 544, 469, 0, 0, 0, 0, 1749, 469) -} -point_count = 2 - -[sub_resource type="AtlasTexture" id="AtlasTexture_418es"] -atlas = ExtResource("4_ohn01") -region = Rect2(0, 644, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_mgwte"] -atlas = ExtResource("4_ohn01") -region = Rect2(344, 644, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_eaplk"] -atlas = ExtResource("4_ohn01") -region = Rect2(688, 644, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_vvt1l"] -atlas = ExtResource("4_ohn01") -region = Rect2(1032, 644, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_1wa2c"] -atlas = ExtResource("4_ohn01") -region = Rect2(1376, 644, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_a87ds"] -atlas = ExtResource("4_ohn01") -region = Rect2(1720, 644, 344, 644) - -[sub_resource type="SpriteFrames" id="SpriteFrames_25r11"] -animations = [{ -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_418es") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_mgwte") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_eaplk") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_vvt1l") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_1wa2c") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_a87ds") -}], -"loop": true, -"name": &"idle", -"speed": 5.0 -}] - -[sub_resource type="AtlasTexture" id="AtlasTexture_qsi28"] -atlas = ExtResource("4_ohn01") -region = Rect2(0, 0, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ar1tu"] -atlas = ExtResource("4_ohn01") -region = Rect2(344, 0, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ilota"] -atlas = ExtResource("4_ohn01") -region = Rect2(688, 0, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_xmcc6"] -atlas = ExtResource("4_ohn01") -region = Rect2(1032, 0, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_6346d"] -atlas = ExtResource("4_ohn01") -region = Rect2(1376, 0, 344, 644) - -[sub_resource type="AtlasTexture" id="AtlasTexture_s2q7t"] -atlas = ExtResource("4_ohn01") -region = Rect2(1720, 0, 344, 644) - -[sub_resource type="SpriteFrames" id="SpriteFrames_ru7b5"] -animations = [{ -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_qsi28") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ar1tu") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ilota") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_xmcc6") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_6346d") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_s2q7t") -}], -"loop": false, -"name": &"idle", -"speed": 5.0 -}] - -[sub_resource type="Animation" id="Animation_n6305"] -length = 0.001 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("Flag:rotation") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [-0.0628319] -} -tracks/1/type = "value" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath("Flag:size") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Vector2(186, 170)] -} -tracks/2/type = "value" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath("Flag:position") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Vector2(204, 472)] -} -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("Beacon:frame") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [0] -} - -[sub_resource type="Animation" id="Animation_t78yv"] -resource_name = "idle" -length = 0.6 -loop_mode = 1 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("Flag:rotation") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5), -"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), -"update": 1, -"values": [-0.0628319, -0.0523599, -0.0383972, -0.0261799, -0.0314159, -0.0471239] -} -tracks/1/type = "value" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath("Flag:size") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [Vector2(186, 170)] -} -tracks/2/type = "value" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath("Flag:position") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5), -"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), -"update": 1, -"values": [Vector2(204, 472), Vector2(207, 471), Vector2(212, 470), Vector2(215, 468), Vector2(213, 468), Vector2(208.5, 470)] -} -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("Beacon:frame") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6), -"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1), -"update": 1, -"values": [0, 1, 2, 3, 4, 5, 0] -} - -[sub_resource type="AnimationLibrary" id="AnimationLibrary_tmg6i"] -_data = { -&"RESET": SubResource("Animation_n6305"), -&"idle": SubResource("Animation_t78yv") -} - -[sub_resource type="AtlasTexture" id="AtlasTexture_td78x"] -atlas = ExtResource("8_qh4mt") -region = Rect2(0, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_pr8r8"] -atlas = ExtResource("8_qh4mt") -region = Rect2(730, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_yu8vr"] -atlas = ExtResource("8_qh4mt") -region = Rect2(1460, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_72pie"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2190, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_p0182"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2920, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_xsod7"] -atlas = ExtResource("8_qh4mt") -region = Rect2(3650, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_1ovcx"] -atlas = ExtResource("8_qh4mt") -region = Rect2(4380, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_8sjbj"] -atlas = ExtResource("8_qh4mt") -region = Rect2(5110, 0, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_skkqi"] -atlas = ExtResource("8_qh4mt") -region = Rect2(0, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_31btl"] -atlas = ExtResource("8_qh4mt") -region = Rect2(730, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_usm8j"] -atlas = ExtResource("8_qh4mt") -region = Rect2(1460, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ldgks"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2190, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_c28t2"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2920, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_cg4od"] -atlas = ExtResource("8_qh4mt") -region = Rect2(3650, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_1onkk"] -atlas = ExtResource("8_qh4mt") -region = Rect2(4380, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_anwwn"] -atlas = ExtResource("8_qh4mt") -region = Rect2(5110, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_upvs8"] -atlas = ExtResource("8_qh4mt") -region = Rect2(5840, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_jdduj"] -atlas = ExtResource("8_qh4mt") -region = Rect2(6570, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_jqc8v"] -atlas = ExtResource("8_qh4mt") -region = Rect2(7300, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_nd2k2"] -atlas = ExtResource("8_qh4mt") -region = Rect2(8030, 1034, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ry2l8"] -atlas = ExtResource("8_qh4mt") -region = Rect2(0, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_qyuav"] -atlas = ExtResource("8_qh4mt") -region = Rect2(730, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_cbb5h"] -atlas = ExtResource("8_qh4mt") -region = Rect2(1460, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_i8jpw"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2190, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_h5kf8"] -atlas = ExtResource("8_qh4mt") -region = Rect2(2920, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_8y36j"] -atlas = ExtResource("8_qh4mt") -region = Rect2(3650, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_47fm8"] -atlas = ExtResource("8_qh4mt") -region = Rect2(4380, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_mn05e"] -atlas = ExtResource("8_qh4mt") -region = Rect2(5110, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_13fi6"] -atlas = ExtResource("8_qh4mt") -region = Rect2(5840, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_47dn7"] -atlas = ExtResource("8_qh4mt") -region = Rect2(6570, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_n0rp0"] -atlas = ExtResource("8_qh4mt") -region = Rect2(7300, 517, 730, 517) - -[sub_resource type="AtlasTexture" id="AtlasTexture_nv33l"] -atlas = ExtResource("8_qh4mt") -region = Rect2(8030, 517, 730, 517) - -[sub_resource type="SpriteFrames" id="SpriteFrames_ukbiw"] -animations = [{ -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_td78x") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_pr8r8") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_yu8vr") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_72pie") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_p0182") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_xsod7") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_1ovcx") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_8sjbj") -}], -"loop": true, -"name": &"idle", -"speed": 7.0 -}, { -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_skkqi") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_31btl") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_usm8j") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ldgks") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_c28t2") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_cg4od") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_1onkk") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_anwwn") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_upvs8") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_jdduj") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_jqc8v") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_nd2k2") -}], -"loop": false, -"name": &"left", -"speed": 12.0 -}, { -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_ry2l8") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_qyuav") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_cbb5h") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_i8jpw") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_h5kf8") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_8y36j") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_47fm8") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_mn05e") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_13fi6") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_47dn7") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_n0rp0") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_nv33l") -}], -"loop": false, -"name": &"right", -"speed": 12.0 -}] - -[node name="FishMinigame" unique_id=1178378052 instance=ExtResource("1_itrpi")] -script = ExtResource("2_68jip") -game_duration = 240 -minimum_correct_ratio = 0.8 -winning_color = Color(2.988, 2.328, 0.6, 1) -max_words_count = 15 -minigame_name = 9 -lesson_nb = 50 - -[node name="WorldEnvironment" type="WorldEnvironment" parent="." index="0" unique_id=1518320737] -environment = SubResource("Environment_5bcb7") - -[node name="MinigameUI" parent="." index="2" unique_id=1199249440] -stimulus_button_visible = false - -[node name="Background" type="TextureRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="0" unique_id=1937666021] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("3_3ty3i") - -[node name="Path2D" type="Path2D" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="1" unique_id=191741591] -curve = SubResource("Curve2D_8d1qx") - -[node name="PathFollow2D" type="PathFollow2D" parent="GameRoot/Path2D" index="0" unique_id=699263217] -unique_name_in_owner = true -position = Vector2(544, 469) -rotates = false -loop = false - -[node name="Sprite2D" type="Sprite2D" parent="GameRoot/Path2D/PathFollow2D" index="0" unique_id=2147097806] -scale = Vector2(2, 2) -texture = ExtResource("4_2m0ff") - -[node name="Cloud" type="TextureRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="2" unique_id=609886137] -layout_mode = 1 -anchors_preset = 10 -anchor_right = 1.0 -offset_bottom = 861.0 -grow_horizontal = 2 -texture = ExtResource("4_ccu1v") - -[node name="Sea" type="TextureRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="3" unique_id=2146523339] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("5_dc51h") - -[node name="Beacon1" type="Control" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="4" unique_id=653620685 node_paths=PackedStringArray("sprites")] -unique_name_in_owner = true -anchors_preset = 0 -offset_left = 408.0 -offset_top = 200.0 -offset_right = 1026.0 -offset_bottom = 1326.0 -script = ExtResource("4_8mkk3") -sprites = [NodePath("Beacon")] - -[node name="Beacon" type="AnimatedSprite2D" parent="GameRoot/Beacon1" index="0" unique_id=1764335398] -scale = Vector2(1.7965117, 1.7484472) -sprite_frames = SubResource("SpriteFrames_25r11") -animation = &"idle" -autoplay = "idle" -frame_progress = 0.600356 -centered = false - -[node name="FalseWrongFX" parent="GameRoot/Beacon1" index="1" unique_id=818861745 instance=ExtResource("11_ueo10")] -unique_name_in_owner = true -layout_mode = 0 -offset_left = 306.0 -offset_top = 533.0 -offset_right = 306.0 -offset_bottom = 533.0 - -[node name="FalseRightFX" parent="GameRoot/Beacon1" index="2" unique_id=1624850180 instance=ExtResource("9_mcq4c")] -unique_name_in_owner = true -layout_mode = 0 -offset_left = 306.0 -offset_top = 521.0 -offset_right = 306.0 -offset_bottom = 521.0 - -[node name="Beacon2" type="Control" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="5" unique_id=1720390365 node_paths=PackedStringArray("sprites")] -unique_name_in_owner = true -anchors_preset = 0 -offset_left = 1600.0 -offset_top = 200.0 -offset_right = 2218.0 -offset_bottom = 1326.0 -script = ExtResource("4_8mkk3") -sprites = [NodePath("Beacon")] - -[node name="Beacon" type="AnimatedSprite2D" parent="GameRoot/Beacon2" index="0" unique_id=752086631] -scale = Vector2(1.7965117, 1.7484472) -sprite_frames = SubResource("SpriteFrames_ru7b5") -animation = &"idle" -centered = false - -[node name="Flag" type="TextureRect" parent="GameRoot/Beacon2" index="1" unique_id=140327293] -layout_mode = 0 -offset_left = 204.0 -offset_top = 472.0 -offset_right = 390.0 -offset_bottom = 642.0 -rotation = -0.0628319 -mouse_filter = 2 -texture = ExtResource("9_2adou") -expand_mode = 1 - -[node name="AnimationPlayer" type="AnimationPlayer" parent="GameRoot/Beacon2" index="2" unique_id=924740165] -libraries/ = SubResource("AnimationLibrary_tmg6i") -autoplay = &"idle" -speed_scale = 0.5 - -[node name="RealWrongFX" parent="GameRoot/Beacon2" index="3" unique_id=2129825964 instance=ExtResource("11_ueo10")] -unique_name_in_owner = true -layout_mode = 0 -offset_left = 306.0 -offset_top = 533.0 -offset_right = 306.0 -offset_bottom = 533.0 - -[node name="RealRightFX" parent="GameRoot/Beacon2" index="4" unique_id=810997273 instance=ExtResource("9_mcq4c")] -unique_name_in_owner = true -layout_mode = 0 -offset_left = 306.0 -offset_top = 521.0 -offset_right = 306.0 -offset_bottom = 521.0 - -[node name="AspectRatioContainer" type="AspectRatioContainer" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="6" unique_id=1135675409] -layout_mode = 0 -offset_left = 520.0 -offset_top = 656.0 -offset_right = 2129.0 -offset_bottom = 1802.0 -mouse_filter = 2 -ratio = 1.412 - -[node name="Fish" type="Control" parent="GameRoot/AspectRatioContainer" index="0" unique_id=63303695 node_paths=PackedStringArray("sprites")] -unique_name_in_owner = true -layout_mode = 2 -mouse_filter = 2 -script = ExtResource("4_8mkk3") -sprites = [NodePath("FishAnimatedSprite")] - -[node name="FishAnimatedSprite" type="AnimatedSprite2D" parent="GameRoot/AspectRatioContainer/Fish" index="0" unique_id=394233767] -unique_name_in_owner = true -scale = Vector2(2.2041097, 2.2040977) -sprite_frames = SubResource("SpriteFrames_ukbiw") -animation = &"idle" -autoplay = "idle" -centered = false - -[node name="FishStartZone" type="Control" parent="GameRoot/AspectRatioContainer/Fish" index="1" unique_id=2033291081] -unique_name_in_owner = true -anchors_preset = 0 -offset_left = 508.0 -offset_top = 346.0 -offset_right = 1084.0 -offset_bottom = 1124.0 - -[node name="ProgressionGauge" type="NinePatchRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="7" unique_id=1664248446] -unique_name_in_owner = true -custom_minimum_size = Vector2(64, 64) -layout_mode = 0 -offset_left = 2317.0 -offset_top = 233.0 -offset_right = 2439.0 -offset_bottom = 1599.0 -texture = ExtResource("11_p5wnc") -patch_margin_top = 33 -patch_margin_bottom = 33 - -[node name="ProgressionGaugeGoalPercentMarginContainer2" type="Container" parent="GameRoot/ProgressionGauge" index="0" unique_id=1583570329] -unique_name_in_owner = true -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("14_b3ilp") -margin_top_ratio = 0.19 - -[node name="ProgressionGaugeInternal" type="NinePatchRect" parent="GameRoot/ProgressionGauge/ProgressionGaugeGoalPercentMarginContainer2" index="0" unique_id=1583306416] -layout_mode = 2 -texture = ExtResource("11_p5wnc") -patch_margin_top = 33 -patch_margin_bottom = 33 - -[node name="ProgressionGaugePercentMarginContainer" type="Container" parent="GameRoot/ProgressionGauge" index="1" unique_id=1140040548] -unique_name_in_owner = true -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("14_b3ilp") -margin_top_ratio = 0.95 - -[node name="ProgressionGaugeInternal" type="NinePatchRect" parent="GameRoot/ProgressionGauge/ProgressionGaugePercentMarginContainer" index="0" unique_id=1534553679] -unique_name_in_owner = true -modulate = Color(0.996078, 0.776471, 0.2, 1) -layout_mode = 2 -texture = ExtResource("12_w5m1b") -patch_margin_top = 33 -patch_margin_bottom = 33 - -[node name="TextPlank" type="TextureRect" parent="GameRoot" parent_id_path=PackedInt32Array(1053321881) index="8" unique_id=1794008625] -layout_mode = 0 -offset_left = 1016.0 -offset_top = 1608.0 -offset_right = 1692.0 -offset_bottom = 1743.0 -texture = ExtResource("13_3p0ue") - -[node name="MarginContainer" type="MarginContainer" parent="GameRoot/TextPlank" index="0" unique_id=415001204] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -theme_override_constants/margin_right = 30 - -[node name="Label" type="Label" parent="GameRoot/TextPlank/MarginContainer" index="0" unique_id=1229572097] -unique_name_in_owner = true -visible = false -layout_mode = 2 -theme_override_font_sizes/font_size = 100 -text = "a" -label_settings = ExtResource("17_47luc") -horizontal_alignment = 1 - -[node name="AdultBlock" parent="." index="5" unique_id=1401891944 instance=ExtResource("18_4v0wd")] -unique_name_in_owner = true -visible = false -layout_mode = 1 - -[connection signal="beacon_fish_dropped" from="." to="." method="_on_beacon_fish_dropped"] -[connection signal="animation_finished" from="GameRoot/AspectRatioContainer/Fish/FishAnimatedSprite" to="." method="_on_fish_animated_sprite_animation_finished"] diff --git a/sources/minigames/fish/fish_texture_rect.gd b/sources/minigames/fish/fish_texture_rect.gd deleted file mode 100644 index 97d47755..00000000 --- a/sources/minigames/fish/fish_texture_rect.gd +++ /dev/null @@ -1,7 +0,0 @@ -extends Control - -@onready var aspect_ratio_container: AspectRatioContainer = $AspectRatioContainer - - -func _ready() -> void: - aspect_ratio_container.position = - aspect_ratio_container.size / 2 diff --git a/sources/minigames/fish/fish_texture_rect.gd.uid b/sources/minigames/fish/fish_texture_rect.gd.uid deleted file mode 100644 index 8d8f82a4..00000000 --- a/sources/minigames/fish/fish_texture_rect.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://t4ngme2jgem6 diff --git a/sources/minigames/fish/fish_texture_rect.tscn b/sources/minigames/fish/fish_texture_rect.tscn deleted file mode 100644 index 59cb8f02..00000000 --- a/sources/minigames/fish/fish_texture_rect.tscn +++ /dev/null @@ -1,27 +0,0 @@ -[gd_scene format=3 uid="uid://ck3nw3pk611qk"] - -[ext_resource type="Script" uid="uid://t4ngme2jgem6" path="res://sources/minigames/fish/fish_texture_rect.gd" id="1_wln62"] -[ext_resource type="Texture2D" uid="uid://cscx0pq6raxdo" path="res://assets/minigames/fish/fish.png" id="1_xh3of"] - -[node name="FishTextureRect" type="Control" unique_id=1574479161] -layout_mode = 3 -anchors_preset = 0 -offset_right = 100.0 -offset_bottom = 100.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("1_wln62") - -[node name="AspectRatioContainer" type="AspectRatioContainer" parent="." unique_id=283341634] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -ratio = 1.5014 - -[node name="TextureRect" type="TextureRect" parent="AspectRatioContainer" unique_id=1452901445] -layout_mode = 2 -texture = ExtResource("1_xh3of") -expand_mode = 1 diff --git a/sources/utils/fx/right_stars.gd b/sources/utils/fx/right_stars.gd index b2859690..8ee73c8f 100644 --- a/sources/utils/fx/right_stars.gd +++ b/sources/utils/fx/right_stars.gd @@ -6,3 +6,7 @@ extends Node2D func play() -> void: gpu_particles_2d.set_emitting(true) + + +func replay() -> void: + gpu_particles_2d.restart()