Repository navigation
Conversation
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.
ojeytonwilliams
left a comment
There was a problem hiding this comment.
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.
Checklist:
Update index.md)Closes #XXXXX