Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.

feat(astro-react): add phaser task type - #105

Open
Dario-DC wants to merge 5 commits into
freeCodeCamp-Universe:mainfrom
Dario-DC:feat/phaser-task-type
Open

Dario-DC wants to merge 5 commits into
freeCodeCamp-Universe:mainfrom
Dario-DC:feat/phaser-task-type

Conversation

@Dario-DC

@Dario-DC Dario-DC commented Sep 21, 2026 •

Copy link
Copy Markdown

Checklist:

Closes #XXXXX

Adds the standalone game layer the phaser task type builds on: shared
canvas dimensions, theme-token reading with live theme watching, the
CreateGame/GameInstance contracts, a lazy game registry, and the
rover-run game itself.
Parses --phaser-- blocks into a question and a game id, validating the
id against the game registry, and registers the task type in
TASK_DEFINITIONS.
Adds the PhaserGame component that mounts a game from the registry,
tracks its completion state and reports the result through TaskActions,
and dispatches to it from Lesson.
@Dario-DC Dario-DC changed the title feat(astro-react): add phaser taskFeat/phaser task type feat(astro-react): add phaser task type Sep 21, 2026

@ojeytonwilliams ojeytonwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Dario-DC this looks good, I just have some queries.

Is the idea that there be several "rover-run" games all with different configurations (grid size and whatnot)? If so, it would make sense to define the configuration in the .md file (as a yaml code block, probably). If not, then it would be helpful to add a new skill to guide the creation of games, just to avoid repeatedly reinventing the wheel. That or add something to the task-extender. Whichever seems like the better fit.

Minor stuff:

Should Reset take focus back to the puzzle? I'm not sure of the a11y implications, but if that's still accessible, it seems like a nicer UX.

What's "Check answer" mean in the context of the game? My impression was that playing the game was all the checking you'd need. Perhaps the button could be hidden while playing and "Next lesson" appear once the player completes the game.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants