311 Commits

Author SHA1 Message Date
Adrien Ufferte fe696c8b20 debug lessons numbers different from 3 2026-06-06 17:44:17 +02:00
Adrien Ufferte 2db21b597b Minigames wheel version 2 2026-06-06 11:13:22 +02:00
Adrien Ufferte 0e55e5d464 Small corrections for gardens assets 2026-05-28 10:29:23 +02:00
Adrien Ufferte 606b87d1b2 Last 3 gardens 2026-05-26 15:56:41 +02:00
Adrien Ufferte ab1ad7f27e Red Parakeet garden (09) 2026-05-26 14:30:58 +02:00
Adrien Ufferte 847f04c5a7 Monkey garden (08) 2026-05-26 14:11:52 +02:00
Adrien Ufferte b16580094e Frog garden (07) 2026-05-26 13:47:58 +02:00
Adrien Ufferte e5d628897c Garden Caterpillar (06) 2026-05-26 11:32:46 +02:00
Adrien Ufferte fdd597f5d6 Yellow Parakeet garden (05) 2026-05-26 11:08:06 +02:00
Adrien Ufferte 942a3b47ec Gardens animals transform normalization 2026-05-26 10:55:25 +02:00
Adrien Ufferte 953260c31d crabs garden 2026-05-26 10:51:29 +02:00
Adrien Ufferte 7ce680d14c Ant garden (03) 2026-04-30 16:15:13 +02:00
Adrien Ufferte a58e59f656 New garden 02 (and cleaning) 2026-04-30 16:15:13 +02:00
Adrien Ufferte f95ff50c15 Centers text on turtles, and make font a little smaller to fit double letters 2026-04-27 11:06:48 +02:00
Adrien Ufferte 1d387d1ea6 Debug difficulty system 2026-04-24 10:41:40 +02:00
Adrien Ufferte c6f7ef833d Cleaning 2026-04-17 10:10:58 +02:00
Adrien Ufferte af6ae59120 Clean nomenclature 2026-04-16 15:57:40 +02:00
Adrien Ufferte b1edce3fa4 Remove placeholder background colors from gardens 06-12
Background colors are set manually in the editor, not by code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:45:31 +02:00
Adrien Ufferte 803e163de8 Set background color directly on Background node in garden scenes
Removed code-side background.modulate override from set_background() —
background tint is now baked into each scene's Background node. Gardens
06-12 use placeholder colors pending final design specs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:42:40 +02:00
Adrien Ufferte e3dda5e8b0 Set correct colors and titles for gardens 01-05 from design specs
Blue Jellyfish, Purple Turtle, Ant, Crab, Yellow Parakeet gardens
now use the final color values from the design spreadsheet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:38:10 +02:00
Adrien Ufferte 24d77e19e0 Replace single garden scene with 12 fixed garden scenes with per-garden colors
Each garden (garden_01.tscn through garden_12.tscn) now has its own color
palette for lesson buttons (unlocked/completed fill and text colors).
Lesson count is validated to be between 12 and 60. The old dynamic
duplication of a single garden.tscn is replaced by instantiating the
correct scene per garden index.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:35:45 +02:00
Adrien Ufferte 2b5f5f2e28 Make gardens assets hard-placed instead of generated 2026-04-16 13:54:16 +02:00
Adrien Ufferte aa161cf21e Reduce lesson button size by 20% (300→240px)
Buttons, pivot offsets and font size scaled down proportionally.
Same center positions preserved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte 884b481d30 Place plants and buttons directly in garden scene
All 8 plants are now TextureRect nodes in garden.tscn instead of being
instantiated at runtime. Positions, sizes and colors are editable
directly in the Godot editor. Buttons were already scene nodes.

Removed _create_plants(), PLANT_LAYOUTS, PLANT_PATH_MODEL and all
runtime instantiation code from garden.gd. Plants container is now
placed between Background and Buttons for correct z-ordering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte 0a8a725625 Tint garden plants with dark teal (#0a555b) matching mockup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte 49d5fcd38b Replace old flower system with new plant assets and progressive reveal
- Add 8 garden plant assets (garden_plant_01 to 08) from victory assets
- Remove entire old flower system (FlowerSizes enum, flower generation,
  flower VFX transitions, flower_controls, flowers_visible, flowers_sizes)
- Remove Flower class from GardenLayout
- Plants are created programmatically in Garden._create_plants() at fixed
  positions matching the Explanation.png mockup layout
- All plants hidden by default, revealed progressively based on completed
  minigames ratio: 0 completed = 0 visible, all completed = all 8 visible
- Add lowercase file naming rule to CLAUDE.md
- Fix current_garden lookup to use _get_garden_index_for_lesson instead
  of removed flower_info system

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte b13fe0638d Hard-place 5 lesson buttons in garden scene with show/hide logic
Replace dynamic button instantiation with 5 fixed LessonButton instances
(Slot1-Slot5) positioned at hardcoded coordinates in the garden scene.
Garden._configure_slots() shows/hides slots based on lesson count using
the SLOT_SELECTION mapping (5→all, 4→skip middle, 3→1,3,5, etc.).

- Add error log if lesson count exceeds MAX_LESSONS (5)
- Remove dynamic _ensure_button_controls_count from garden.gd
- Replace position generation functions with SLOT_CENTERS constant
- Buttons are clickable via existing _set_up_lessons signal wiring

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte d45318606b Implement fixed 5-slot diagonal layout for garden lesson buttons
Buttons are placed at 5 fixed positions on a diagonal from bottom-left
to upper-right. When fewer lessons exist, evenly spaced slots are selected.
Reduced spread radius to keep all buttons inside the circle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte 56f003d433 Simplify: remove dead code, unused exports, and duplicate colors
- Remove dead functions: _get_garden_background_image, _is_position_on_garden_texture,
  _get_garden_dimensions, and associated constants/caches
- Remove unused base_color/completed_color exports from LessonButton
  (colors now driven by constants in _update_visual_state)
- Use LessonButton.UNLOCKED_FILL_COLOR instead of duplicate Color("176d78")
- Inline garden dimensions as constant expression
- Remove unused color parameter from _handle_lesson_button
- Fix missing blank line in garden.gd constant block

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte dc83e7b4e2 Fix garden visuals: tint, sizing, button layout and colors
- Tint garden background #176d78 via modulate in set_background()
- Fix background as 1700x1700 centered square instead of stretched
- Make TextureButton self_modulate transparent so Center/Border are visible
- Diagonal lesson layout from bottom-left to upper-right matching mockup
- Center buttons on generated positions instead of top-left alignment
- Increase garden size back to 2400 with 850px circle radius

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte d9522bc922 Redesign gardens with circular layout and new ocean theme
Replace rectangular garden backgrounds with circular Garden_01.png asset,
arrange lesson buttons in a circular pattern instead of sine-wave layout,
and introduce three visual states for buttons (locked/unlocked/completed)
using the new lesson_circle.png texture. Add jellyfish mascot to gardens.

- Add new assets: Garden_01.png, lesson_circle.png, jellyfish.png
- Update garden background to use keep_aspect_centered circular display
- Implement circular lesson positioning with configurable radius
- Simplify position validation to circle-distance check
- Add layout cache versioning to invalidate old layouts
- Update boss_button.tscn to match new button design

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:54:16 +02:00
Adrien Ufferte 5502c2c0eb Handle Database null in Github tests (addon SQL not installed) 2026-03-09 11:49:16 +01:00
Adrien Ufferte 9bf3994eb3 Merge pull request #258 from Excello-Recherche-Education/remove-useless-functions
Remove useless functions
2026-02-24 16:17:33 +01:00
Adrien Ufferte 0cc022fa0d Minigames icons outlines 2026-02-24 13:49:55 +01:00
Adrien Ufferte 8ccc15dd29 Remove useless functions 2026-02-23 16:20:01 +01:00
Adrien Ufferte 9519450a55 Security 2026-02-20 12:17:35 +01:00
Adrien Ufferte c1f8dd64e5 Improve display of version number 2026-02-20 11:14:08 +01:00
Adrien Ufferte 858075f267 Add logs for Device Settings 2026-02-13 11:22:20 +01:00
Adrien Ufferte 7d44eb5e33 Add Unit tests for UserMinigameHistory 2026-02-03 14:18:44 +01:00
Adrien Ufferte dfd584d17c Merge pull request #205 from Excello-Recherche-Education/godot-upgrade-4.6
Upgrade Godot version to 4.6
2026-01-29 11:28:57 +01:00
Adrien Ufferte 847b96ec30 Merge pull request #203 from Excello-Recherche-Education/boss-data-collection
Add data collection to boss games
2026-01-29 11:28:12 +01:00
Adrien Ufferte f3e3d4bfcd Upgrade Godot version to 4.6 2026-01-27 14:52:22 +01:00
Adrien Ufferte 3dc075854b Add data collection to boss games 2026-01-26 14:23:59 +01:00
Adrien Ufferte b227f1cb17 Comments corrections 2026-01-26 13:48:59 +01:00
Adrien Ufferte a950e95b97 Penguin new label graphisms 2026-01-20 14:31:08 +01:00
Adrien Ufferte 7c1c9fbf33 Merge pull request #189 from Excello-Recherche-Education/minigames-feedback
Minigames feedback
2026-01-19 11:53:51 +01:00
Adrien Ufferte fc3589da80 Adult check for boss defeat 2026-01-19 10:21:34 +01:00
Adrien Ufferte c6cd6b1588 Centralize color system 2026-01-15 15:24:15 +01:00
Adrien Ufferte 95d150cebf Debug progress ratio calculation 2026-01-15 11:35:17 +01:00
Adrien Ufferte ce5975bb91 Debug boss number of words 2026-01-15 10:13:19 +01:00