Conversation
Add a comprehensive advancement/achievement system that tracks player stats across games and unlocks progressively. Stats tracked include total lines cleared, best lines per game, T-spin count, total score, best score per game, combos, perfect beats, hard drops, pieces placed, worlds cleared, and multiplayer wins/streaks. 48 advancements across 6 categories (general, lines, score, T-spin, combo, multiplayer). Battle Arena is locked behind a lock icon until the player earns at least 3 advancements. Toast notifications appear when advancements are unlocked during gameplay. Full EN/JA i18n support. https://claude.ai/code/session_018H4abeL9q6UDLeoQzGqG1j
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive achievements system for Rhythmia with 58 unlockable achievements across 6 categories. Players must unlock 3 achievements to access the Battle Arena multiplayer mode. Achievements track various gameplay metrics and display progress with visual feedback.
Key Changes
Achievements System
src/lib/advancements/definitions.ts): 58 achievements organized into 6 categories (General, Lines, Score, T-Spin, Combo, Multiplayer)src/lib/advancements/storage.ts): Persistent achievement state management with localStorage, tracking 15+ gameplay statisticssrc/lib/advancements/types.ts): TypeScript interfaces for achievements, player stats, and game end eventsUI Components
src/components/rhythmia/Advancements.tsx): Full-screen modal displaying all achievements with category filtering, progress bars, and unlock statussrc/components/rhythmia/AdvancementToast.tsx): Toast notifications that appear when achievements are unlocked during gameplayGame Integration
Localization
Notable Implementation Details
https://claude.ai/code/session_018H4abeL9q6UDLeoQzGqG1j