Skip to content

Add memory fragment collection & UI#406

Merged
TheUnrealZaka merged 1 commit into
mainfrom
feat/arrreglar-ancoratges
Jun 12, 2026
Merged

Add memory fragment collection & UI#406
TheUnrealZaka merged 1 commit into
mainfrom
feat/arrreglar-ancoratges

Conversation

@MarcPladellorensPerez

Copy link
Copy Markdown
Contributor

Implements collectible memory fragments: adds fragment_id map property and reads it when spawning MemoryFragment entities. MemoryFragment notifies Player on collect; Player gains arrays to track collected/new fragments. SaveSystem persists hasMemoryFragment[0..2] to XML and restores them (new flags cleared on load). Scene: stores fragment persistence across map loads, loads/unloads collected variant textures, draws collected/new animations in the inventory, shows fragment markers on the minimap, and preserves fragment state during submap loads/unloads. Minor UI tweak (inventory portrait vertical offset) and initialization of timers/texture pointers included. MapTemplate.tmx updated with a default fragment_id property.

Canvis

Issues relacionades

Tipus de canvi

  • feat: Nova funcionalitat
  • fix: Correcció de bug
  • art: Asset gràfic
  • docs: Documentació
  • refactor: Refactorització de codi
  • build: Canvis al sistema de build

Checklist

  • El codi compila sense errors
  • He provat els canvis localment
  • He seguit les naming conventions (PascalCase classes, camelCase mètodes, m_ membres)
  • He usat Conventional Commits al títol del PR
  • He enllaçat la Issue corresponent

Implements collectible memory fragments: adds fragment_id map property and reads it when spawning MemoryFragment entities. MemoryFragment notifies Player on collect; Player gains arrays to track collected/new fragments. SaveSystem persists hasMemoryFragment[0..2] to XML and restores them (new flags cleared on load). Scene: stores fragment persistence across map loads, loads/unloads collected variant textures, draws collected/new animations in the inventory, shows fragment markers on the minimap, and preserves fragment state during submap loads/unloads. Minor UI tweak (inventory portrait vertical offset) and initialization of timers/texture pointers included. MapTemplate.tmx updated with a default fragment_id property.
@MarcPladellorensPerez MarcPladellorensPerez linked an issue Jun 12, 2026 that may be closed by this pull request
@TheUnrealZaka TheUnrealZaka merged commit e89f47d into main Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: arrreglar ancoratges

2 participants