Add Card Rat tutorial flow using shared tutorial framework#129
Conversation
Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
…Needed Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
…als' of github.com:acrosman/BrainSpeedExercises into copilot/copilotcreate-general-framework-for-game-tutorials * 'copilot/copilotcreate-general-framework-for-game-tutorials' of github.com:acrosman/BrainSpeedExercises: Initial plan
acrosman
left a comment
There was a problem hiding this comment.
I've rebased this branch to have the correct base so you have the framework you need to complete the work. It appears no code was actually altered in the initial attempt. Please try again using the framework now included in this branch.
|
@copilot create a tutorial for the Card Rat game. Update this PR to merge into |
Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Implemented in commit |
Card Rat now uses the shared tutorial overlay framework so first-time players get a guided walkthrough, while returning players can start immediately. The instructions screen also adds an explicit replay path for players who want to re-run the tutorial.
Tutorial integration in game lifecycle (
app/games/card-rat/index.js)TUTORIAL_STEPS.showTutorialIfNeeded(...)so unseen players get the overlay before gameplay starts.showTutorial(...)for explicit tutorial re-runs.Instructions UI updates (
app/games/card-rat/interface.html,style.css)Focused plugin tests (
app/games/card-rat/tests/index.test.js)showTutorialIfNeeded(...).showTutorial(...).