Adds a ressource for the settings of the minigames labels. Fixes issues with the scaling of assets. Fixes a bug on the syllables minigame (_on_stimulus_found function was not called).

This commit is contained in:
Dylan Sarrazyn
2024-05-23 12:38:26 +02:00
parent 76cc283485
commit 666895407e
22 changed files with 151 additions and 130 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
[gd_resource type="LabelSettings" format=3 uid="uid://bguqnhiblwick"]
[resource]
font_size = 86
outline_size = 7
outline_color = Color(0, 0, 0, 1)
shadow_size = 2
shadow_color = Color(0, 0, 0, 0.639216)
shadow_offset = Vector2(3, 3)
+3 -1
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://p4004yi344kw"]
[gd_scene load_steps=7 format=3 uid="uid://p4004yi344kw"]
[ext_resource type="Texture2D" uid="uid://bg2gyu46wsh8c" path="res://assets/minigames/ants/graphics/hole_01.png" id="1_jbe57"]
[ext_resource type="Script" path="res://sources/minigames/ants/word.gd" id="2_ed8h7"]
[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="3_hml8s"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="3_q5w35"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="4_tbe68"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hh1fr"]
@@ -40,6 +41,7 @@ unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 72
text = "Toto"
label_settings = ExtResource("3_q5w35")
horizontal_alignment = 1
vertical_alignment = 1
@@ -189,6 +189,7 @@ func _on_stimulus_pressed(stimulus : Dictionary, _node : Node) -> bool:
# Emit signal if needed
if _is_stimulus_right(stimulus):
_on_stimulus_found()
stimulus_found.emit()
return true
+28 -34
View File
@@ -1,12 +1,13 @@
[gd_scene load_steps=7 format=3 uid="uid://b07jfpiwtajh"]
[gd_scene load_steps=8 format=3 uid="uid://b07jfpiwtajh"]
[ext_resource type="Texture2D" uid="uid://cohwkrkiyo5rg" path="res://assets/minigames/caterpillar/graphics/berry.png" id="1_3ncmx"]
[ext_resource type="Script" path="res://sources/minigames/caterpillar/berry.gd" id="1_36web"]
[ext_resource type="PackedScene" uid="uid://cge0uyn30tcpv" path="res://sources/utils/fx/highlight.tscn" id="2_4ywgh"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="4_gmtk0"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="4_j1h4b"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aq0kv"]
size = Vector2(34, 128)
size = Vector2(34, 264)
[sub_resource type="Curve2D" id="Curve2D_w7ms2"]
_data = {
@@ -15,63 +16,56 @@ _data = {
point_count = 4
[node name="Berry" type="Area2D"]
scale = Vector2(2, 2)
script = ExtResource("1_36web")
[node name="HighlightFX" parent="." instance=ExtResource("2_4ywgh")]
offset_left = 32.0
offset_top = -76.0
offset_right = 32.0
offset_bottom = -76.0
scale = Vector2(0.33, 0.33)
offset_left = 33.0
offset_top = -136.0
offset_right = 33.0
offset_bottom = -136.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(16, -64)
position = Vector2(0, -132)
shape = SubResource("RectangleShape2D_aq0kv")
[node name="Path2D" type="Path2D" parent="."]
position = Vector2(32, -78.2222)
scale = Vector2(0.4, 0.555556)
curve = SubResource("Curve2D_w7ms2")
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
rotation = -1.92631
rotates = false
loop = false
[node name="Sprite2D" type="Sprite2D" parent="Path2D/PathFollow2D"]
position = Vector2(-104.15, -124.006)
rotation = 1.92631
scale = Vector2(2.5, 1.8)
position = Vector2(1, -65.7778)
scale = Vector2(2, 2)
texture = ExtResource("1_3ncmx")
offset = Vector2(32, -80)
[node name="Label" type="Label" parent="Path2D/PathFollow2D/Sprite2D"]
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Path2D/PathFollow2D/Sprite2D"]
position = Vector2(90, 0)
[node name="Label" type="Label" parent="Path2D/PathFollow2D"]
unique_name_in_owner = true
offset_left = -8.0
offset_top = -116.0
offset_right = 68.0
offset_bottom = -40.0
theme_override_font_sizes/font_size = 32
text = "A"
offset_left = -68.0
offset_top = -134.0
offset_right = 70.0
offset_bottom = 6.0
text = "ent"
label_settings = ExtResource("4_j1h4b")
horizontal_alignment = 1
vertical_alignment = 1
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Path2D/PathFollow2D/Sprite2D"]
position = Vector2(104, -64)
[node name="WrongFX" parent="." instance=ExtResource("4_gmtk0")]
offset_left = 32.0
offset_top = -76.0
offset_right = 32.0
offset_bottom = -76.0
scale = Vector2(0.5, 0.5)
offset_left = 33.0
offset_top = -136.0
offset_right = 33.0
offset_bottom = -136.0
[node name="Button" type="Button" parent="."]
offset_left = -16.0
offset_top = -128.0
offset_right = 80.0
offset_bottom = -32.0
offset_left = -46.0
offset_top = -216.0
offset_right = 107.0
offset_bottom = -62.0
theme_type_variation = &"InvisibleButton"
[connection signal="screen_exited" from="Path2D/PathFollow2D/Sprite2D/VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
+2 -2
View File
@@ -6,9 +6,9 @@ signal berry_eaten(berry: Berry)
const body_part_scene: PackedScene = preload("res://sources/minigames/caterpillar/caterpillar_body.tscn")
const body_part_width: int = 64
const body_part_width: int = 128
const body_part_move_time: float = 0.25
const body_part_wait_time: float = 0.025
const body_part_wait_time: float = 0.04
@onready var head: CaterpillarHead = $Head
@onready var body_parts: Node2D = $BodyParts
@@ -8,28 +8,31 @@
[ext_resource type="PackedScene" uid="uid://cm7e5ir8ykhpv" path="res://sources/minigames/caterpillar/caterpillar_head.tscn" id="17_ty72k"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6qw72"]
size = Vector2(34, 128)
size = Vector2(34, 256)
[node name="Caterpillar" type="Node2D"]
scale = Vector2(2, 2)
script = ExtResource("1_addut")
[node name="BodyParts" type="Node2D" parent="."]
position = Vector2(64, 0)
[node name="CaterpillarBody" parent="BodyParts" instance=ExtResource("2_vrjdf")]
[node name="Tail" type="Node2D" parent="."]
[node name="Tail1" type="Sprite2D" parent="Tail"]
position = Vector2(0, -99)
position = Vector2(40, -168)
scale = Vector2(2, 2)
texture = ExtResource("14_dchxm")
[node name="Tail2" type="Sprite2D" parent="Tail"]
position = Vector2(-13, -112)
position = Vector2(8, -192)
scale = Vector2(2, 2)
texture = ExtResource("15_i1gfi")
[node name="Tail3" type="Sprite2D" parent="Tail"]
position = Vector2(-24, -117)
position = Vector2(-16, -192)
scale = Vector2(2, 2)
texture = ExtResource("16_w74x8")
[node name="Head" parent="." instance=ExtResource("17_ty72k")]
@@ -37,7 +40,7 @@ texture = ExtResource("16_w74x8")
[node name="EatArea2D" type="Area2D" parent="Head"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Head/EatArea2D"]
position = Vector2(176, -64)
position = Vector2(416, -128)
shape = SubResource("RectangleShape2D_6qw72")
[connection signal="area_entered" from="Head/EatArea2D" to="." method="_on_eat_area_2d_area_entered"]
@@ -1,4 +1,4 @@
[gd_scene load_steps=16 format=3 uid="uid://dryu60mtiqv3"]
[gd_scene load_steps=17 format=3 uid="uid://dryu60mtiqv3"]
[ext_resource type="Texture2D" uid="uid://b10j7xa7pso3w" path="res://assets/minigames/caterpillar/graphics/caterpillar_body_idle_1_0000.png" id="1_2884l"]
[ext_resource type="Script" path="res://sources/minigames/caterpillar/caterpillar_body.gd" id="1_vvkkg"]
@@ -14,6 +14,7 @@
[ext_resource type="Texture2D" uid="uid://dglxepw3sraye" path="res://assets/minigames/caterpillar/graphics/caterpillar_body_walk_0005.png" id="11_tnnjk"]
[ext_resource type="Texture2D" uid="uid://hwk6152g66qr" path="res://assets/minigames/caterpillar/graphics/caterpillar_body_walk_0007.png" id="12_wkhrj"]
[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="14_cyw4o"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="15_7eh5m"]
[sub_resource type="SpriteFrames" id="SpriteFrames_236fx"]
animations = [{
@@ -68,23 +69,24 @@ animations = [{
script = ExtResource("1_vvkkg")
[node name="RightFX" parent="." instance=ExtResource("14_cyw4o")]
offset_left = 32.0
offset_top = -72.0
offset_right = 32.0
offset_bottom = -72.0
scale = Vector2(0.5, 0.5)
offset_left = 64.0
offset_top = -128.0
offset_right = 64.0
offset_bottom = -128.0
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, 16)
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_236fx")
animation = &"walk"
frame_progress = 0.649697
frame_progress = 0.801874
offset = Vector2(32, -64)
[node name="Label" type="Label" parent="."]
offset_left = -8.0
offset_top = -116.0
offset_right = 68.0
offset_bottom = -40.0
theme_override_font_sizes/font_size = 32
offset_top = -216.0
offset_right = 136.0
offset_bottom = -72.0
label_settings = ExtResource("15_7eh5m")
horizontal_alignment = 1
vertical_alignment = 1
@@ -128,16 +128,16 @@ animations = [{
script = ExtResource("1_775bq")
[node name="SpitFX" parent="." instance=ExtResource("28_vojnm")]
offset_left = 136.0
offset_top = -72.0
offset_right = 136.0
offset_bottom = -72.0
offset_left = 320.0
offset_top = -128.0
offset_right = 320.0
offset_bottom = -128.0
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(112, -96)
position = Vector2(296, -176)
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_x8rro")
animation = &"idle1"
frame_progress = 0.393448
[node name="CaterpillarAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("26_f75m3")
+1 -1
View File
@@ -6,7 +6,7 @@ signal crab_hit(stimulus: Dictionary)
@onready var body: Control = $Body
@onready var animated_sprite: AnimatedSprite2D = %AnimatedSprite2D
@onready var label: Label = %AutoSizeLabel.get_node("Label")
@onready var label: Label = $Body/Label
@onready var button: Button = $Button
@onready var highlight_fx: HighlightFX = %HighlightFX
@onready var right_fx: RightFX = %RightFX
+21 -30
View File
@@ -1,13 +1,13 @@
[gd_scene load_steps=37 format=3 uid="uid://bwe3fp0vkpufb"]
[ext_resource type="Script" path="res://sources/minigames/crabs/crab/crab.gd" id="1_5hgg8"]
[ext_resource type="AudioStream" uid="uid://dvm21l5saxw3a" path="res://assets/minigames/crabs/audio/sfx/crab_random_2.mp3" id="2_m82yn"]
[ext_resource type="Texture2D" uid="uid://c36217nu30yh3" path="res://assets/minigames/crabs/graphic/crab_spritesheet.png" id="2_yu4q0"]
[ext_resource type="Script" path="res://sources/utils/sprite_control.gd" id="3_e1twq"]
[ext_resource type="PackedScene" uid="uid://cge0uyn30tcpv" path="res://sources/utils/fx/highlight.tscn" id="3_is4em"]
[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="4_3hx0j"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="5_3sw4w"]
[ext_resource type="Script" path="res://sources/utils/percent_margin_container.gd" id="6_bn4pr"]
[ext_resource type="PackedScene" uid="uid://bgio7muqck2bu" path="res://sources/utils/auto_size_label.tscn" id="7_kyqqg"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="9_wf8vl"]
[sub_resource type="AtlasTexture" id="AtlasTexture_87f4k"]
atlas = ExtResource("2_yu4q0")
@@ -200,12 +200,14 @@ animations = [{
custom_minimum_size = Vector2(205, 179)
layout_mode = 3
anchors_preset = 0
offset_right = 205.0
offset_bottom = 179.0
offset_right = 368.0
offset_bottom = 320.0
script = ExtResource("1_5hgg8")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_m82yn")
volume_db = -3.0
stream_paused = true
bus = &"Effects"
[node name="BackFX" type="Control" parent="."]
@@ -226,7 +228,6 @@ anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.5, 0.5)
size_flags_horizontal = 4
size_flags_vertical = 4
@@ -240,7 +241,6 @@ anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.5, 0.5)
[node name="Body" type="Control" parent="."]
layout_mode = 1
@@ -249,7 +249,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(103, 104)
pivot_offset = Vector2(184, 160)
[node name="SpriteControl" type="Control" parent="Body" node_paths=PackedStringArray("sprites")]
layout_mode = 1
@@ -263,35 +263,29 @@ sprites = [NodePath("AnimatedSprite2D")]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Body/SpriteControl"]
unique_name_in_owner = true
scale = Vector2(1.79512, 1.78771)
sprite_frames = SubResource("SpriteFrames_g5q5i")
animation = &"idle2"
autoplay = "idle1"
frame_progress = 0.998245
frame = 4
frame_progress = 0.845782
centered = false
offset = Vector2(-5, 0)
[node name="PercentMarginContainer" type="Container" parent="Body"]
[node name="Label" type="Label" parent="Body"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
anchors_preset = -1
anchor_left = 0.23913
anchor_top = 0.340625
anchor_right = 0.76087
anchor_bottom = 0.8
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("6_bn4pr")
margin_left_ratio = 0.2
margin_top_ratio = 0.4
margin_right_ratio = 0.2
margin_bottom_ratio = 0.3
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="Body/PercentMarginContainer"]
layout_mode = 2
[node name="AutoSizeLabel" parent="Body/PercentMarginContainer/AspectRatioContainer" instance=ExtResource("7_kyqqg")]
unique_name_in_owner = true
layout_mode = 2
[node name="Label" parent="Body/PercentMarginContainer/AspectRatioContainer/AutoSizeLabel" index="0"]
text = ""
text = "ent"
label_settings = ExtResource("9_wf8vl")
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="FrontFX" type="Control" parent="."]
layout_mode = 1
@@ -311,7 +305,6 @@ anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.5, 0.5)
size_flags_horizontal = 4
size_flags_vertical = 4
@@ -332,5 +325,3 @@ disabled = true
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_audio_stream_player_finished"]
[connection signal="animation_finished" from="Body/SpriteControl/AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[editable path="Body/PercentMarginContainer/AspectRatioContainer/AutoSizeLabel"]
+1 -2
View File
@@ -9,8 +9,7 @@
[node name="CrabsMinigame" instance=ExtResource("1_lbq56")]
script = ExtResource("2_gierf")
minigame_name = "crabs"
lesson_nb = 3
difficulty = 2
lesson_nb = 10
max_number_of_lives = 5
max_progression = 5
+4 -4
View File
@@ -7,10 +7,10 @@ signal stop()
signal crab_out(hole : Hole)
const crab_scene: = preload("res://sources/minigames/crabs/crab/crab.tscn")
const crab_spawn_y: float = 100.
const crab_middle_y: float = 20.
const crab_out_y: float = -130.
const crab_up_y: float = -180.
const crab_spawn_y: float = 200.
const crab_middle_y: float = -25.
const crab_out_y: float = -220.
const crab_up_y: float = -330.
@onready var hole_back: Sprite2D = $HoleBack
@onready var hole_front: Sprite2D = $HoleFront
+4 -1
View File
@@ -9,10 +9,10 @@
[ext_resource type="Script" path="res://sources/minigames/crabs/hole/hole_audio_stream_player_2d.gd" id="6_2rg3s"]
[node name="Hole" type="Node2D"]
scale = Vector2(1.8, 1.8)
script = ExtResource("1_05s8c")
[node name="HoleBack" type="Sprite2D" parent="."]
scale = Vector2(1.8, 1.8)
texture = ExtResource("2_osih7")
[node name="Mask" type="Sprite2D" parent="."]
@@ -22,14 +22,17 @@ texture = ExtResource("3_ietrg")
[node name="IconToHideTheMask" type="Sprite2D" parent="Mask"]
position = Vector2(-1, 263)
scale = Vector2(1.8, 1.8)
texture = ExtResource("4_5yovx")
[node name="SandVFX" parent="." instance=ExtResource("5_vress")]
offset_top = 57.7778
offset_bottom = 57.7778
scale = Vector2(1.8, 1.8)
[node name="HoleFront" type="Sprite2D" parent="."]
position = Vector2(0, 2)
scale = Vector2(1.8, 1.8)
texture = ExtResource("5_ahgwg")
[node name="Timer" type="Timer" parent="."]
+3 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=69 format=3 uid="uid://df5derhil64ca"]
[gd_scene load_steps=70 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" path="res://sources/minigames/fish/fish_minigame.gd" id="2_68jip"]
@@ -16,6 +16,7 @@
[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/monkeys/graphic/textplank.png" id="13_3p0ue"]
[ext_resource type="Script" 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"]
[sub_resource type="Environment" id="Environment_5bcb7"]
background_mode = 3
@@ -714,6 +715,7 @@ unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 100
text = "a"
label_settings = ExtResource("17_47luc")
horizontal_alignment = 1
[connection signal="beacon_fish_dropped" from="." to="." method="_on_beacon_fish_dropped"]
+2 -2
View File
@@ -16,6 +16,8 @@
[node name="FrogMinigame" instance=ExtResource("1_ng5er")]
script = ExtResource("2_0xg3r")
max_number_of_GPs = null
distractors_queue_size = null
minigame_name = "frog"
lesson_nb = 10
difficulty = null
@@ -23,8 +25,6 @@ current_lesson_stimuli_ratio = null
minigame_number = null
max_number_of_lives = 5
max_progression = 5
max_number_of_GPs = null
distractors_queue_size = null
[node name="MinigameUI" parent="." index="1"]
empty_progression_icon = ExtResource("2_e38i1")
+3 -2
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://bkswcqcmf7a0r"]
[gd_scene load_steps=13 format=3 uid="uid://bkswcqcmf7a0r"]
[ext_resource type="Material" uid="uid://3n8kdc1u25om" path="res://sources/minigames/frog/lilypad_material.tres" id="1_pbo2v"]
[ext_resource type="Script" path="res://sources/minigames/frog/lilypad.gd" id="2_pdqed"]
@@ -8,6 +8,7 @@
[ext_resource type="PackedScene" uid="uid://cge0uyn30tcpv" path="res://sources/utils/fx/highlight.tscn" id="5_1llgv"]
[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="6_wslmk"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="7_241b6"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="8_4pqhl"]
[sub_resource type="Animation" id="Animation_852sr"]
length = 0.001
@@ -114,8 +115,8 @@ offset_right = -39.0
offset_bottom = -57.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 128
text = "A"
label_settings = ExtResource("8_4pqhl")
horizontal_alignment = 1
vertical_alignment = 1
+5 -2
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://cpkwyypyikpfc"]
[gd_scene load_steps=10 format=3 uid="uid://cpkwyypyikpfc"]
[ext_resource type="Script" path="res://sources/utils/sprite_control.gd" id="1_1b85n"]
[ext_resource type="Script" path="res://sources/minigames/jellyfish/jellyfish.gd" id="1_06uwq"]
@@ -8,6 +8,7 @@
[ext_resource type="PackedScene" uid="uid://bgio7muqck2bu" path="res://sources/utils/auto_size_label.tscn" id="4_26xiq"]
[ext_resource type="SpriteFrames" uid="uid://dquynn3nx52o" path="res://sources/minigames/jellyfish/red_jellyfish_animations.tres" id="5_js27p"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="6_w1tlu"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="8_x6vke"]
[node name="Jellyfish" type="Control"]
custom_minimum_size = Vector2(400, 400)
@@ -15,7 +16,7 @@ layout_mode = 3
anchors_preset = 0
offset_right = 400.0
offset_bottom = 400.0
scale = Vector2(1.04778, 1.04778)
scale = Vector2(1.13288, 1.13288)
script = ExtResource("1_06uwq")
[node name="BackFX" type="Control" parent="."]
@@ -68,6 +69,7 @@ unique_name_in_owner = true
scale = Vector2(2.15054, 2.15054)
sprite_frames = ExtResource("5_js27p")
animation = &"idle"
frame_progress = 0.492058
centered = false
offset = Vector2(-0.000205994, 0.00019455)
@@ -93,6 +95,7 @@ layout_mode = 2
[node name="Label" parent="PercentMarginContainer/AspectRatioContainer/AutoSizeLabel" index="0"]
text = ""
label_settings = ExtResource("8_x6vke")
[node name="FrontFX" type="Control" parent="."]
custom_minimum_size = Vector2(0, 220)
@@ -180,6 +180,8 @@ func _on_stimulus_pressed(stimulus: Dictionary, node: Node) -> bool:
func _on_stimulus_found() -> void:
print("CLEAR")
spawn_timer.stop()
# Clear all the jellyfishes
for jellyfish: Jellyfish in spawning_space.get_children():
+5 -3
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=5 format=3 uid="uid://2mwfjg3c68p1"]
[gd_scene load_steps=6 format=3 uid="uid://2mwfjg3c68p1"]
[ext_resource type="Texture2D" uid="uid://bh28uja7gs8u4" path="res://assets/minigames/monkeys/graphic/coconut.png" id="1_fvymg"]
[ext_resource type="Script" path="res://sources/minigames/monkeys/coconut.gd" id="1_yojn5"]
[ext_resource type="PackedScene" uid="uid://cge0uyn30tcpv" path="res://sources/utils/fx/highlight.tscn" id="2_8nuxj"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="4_h34ty"]
[ext_resource type="PackedScene" uid="uid://cnt2q4hqn1wsq" path="res://sources/minigames/monkeys/broken_coconut_fx.tscn" id="5_ddd0v"]
[node name="Coconut" type="Node2D"]
@@ -18,11 +19,12 @@ texture = ExtResource("1_fvymg")
[node name="Label" type="Label" parent="."]
custom_minimum_size = Vector2(110, 2.08165e-12)
offset_left = -60.0
offset_top = -53.0
offset_top = -61.0
offset_right = 61.0
offset_bottom = 43.0
offset_bottom = 52.0
theme_override_font_sizes/font_size = 70
text = "ent"
label_settings = ExtResource("4_h34ty")
horizontal_alignment = 1
vertical_alignment = 1
@@ -121,6 +121,11 @@ theme_override_constants/margin_top = -10
[node name="Label" type="RichTextLabel" parent="GameRoot/TextPlank/MarginContainer" index="0"]
layout_mode = 2
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.568627)
theme_override_constants/outline_size = 7
theme_override_constants/shadow_offset_y = 7
theme_override_constants/shadow_offset_x = 7
theme_override_fonts/normal_font = SubResource("FontVariation_br573")
theme_override_font_sizes/normal_font_size = 180
text = "fort"
+12 -10
View File
@@ -1,18 +1,19 @@
[gd_scene load_steps=9 format=3 uid="uid://cmoeum0oc0p2"]
[gd_scene load_steps=10 format=3 uid="uid://cmoeum0oc0p2"]
[ext_resource type="Script" path="res://sources/minigames/parakeets/parakeet.gd" id="1_p0nqk"]
[ext_resource type="SpriteFrames" uid="uid://wybpq21deku7" path="res://sources/minigames/parakeets/red_parakeet_animations.tres" id="2_k0dcm"]
[ext_resource type="LabelSettings" uid="uid://bguqnhiblwick" path="res://resources/themes/minigames_label_settings.tres" id="4_a2lqo"]
[ext_resource type="FontFile" uid="uid://b2l4jfylc1v41" path="res://assets/fonts/DidactGothic-Regular.ttf" id="5_k8sc4"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2q8kg"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_45x46"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_b6a1p"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_aup5h"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_mmhru"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_b6a1p"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_45x46"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2q8kg"]
[node name="Parakeet" type="Node2D"]
script = ExtResource("1_p0nqk")
@@ -20,9 +21,9 @@ script = ExtResource("1_p0nqk")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(2, 2)
sprite_frames = ExtResource("2_k0dcm")
animation = &"idle_front_blink"
animation = &"idle_front"
autoplay = "idle_front"
frame_progress = 0.71793
frame_progress = 0.973674
offset = Vector2(2.08165e-12, -82)
[node name="Label" type="Label" parent="."]
@@ -33,6 +34,7 @@ offset_bottom = -44.0
theme_override_fonts/font = ExtResource("5_k8sc4")
theme_override_font_sizes/font_size = 90
text = "A"
label_settings = ExtResource("4_a2lqo")
horizontal_alignment = 1
vertical_alignment = 1
@@ -41,11 +43,11 @@ offset_left = -91.0
offset_top = -255.0
offset_right = 90.0
offset_bottom = 13.0
theme_override_styles/normal = SubResource("StyleBoxEmpty_2q8kg")
theme_override_styles/focus = SubResource("StyleBoxEmpty_45x46")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_b6a1p")
theme_override_styles/hover = SubResource("StyleBoxEmpty_aup5h")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_mmhru")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_b6a1p")
theme_override_styles/focus = SubResource("StyleBoxEmpty_45x46")
theme_override_styles/normal = SubResource("StyleBoxEmpty_2q8kg")
[connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_looped"]
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]