diff --git a/app/components/gameCard.js b/app/components/gameCard.js index e268297..3808c08 100644 --- a/app/components/gameCard.js +++ b/app/components/gameCard.js @@ -16,6 +16,11 @@ * @param {string} [manifest.thumbnail] - Path to the thumbnail image. * @param {object} [progress] - Optional progress data for the game. * @param {number} [progress.highScore] - The player's high score for this game. + * @param {number} [progress.highestLevel] - The highest level reached (0-indexed; + * displayed as level + 1). + * @param {number} [progress.maxLevel] - The maximum level number reached. + * @param {number} [progress.maxPiggies] - The maximum number of piggies collected. + * @param {number} [progress.lowestDisplayTime] - The lowest display time achieved, in milliseconds. * @returns {HTMLElement} An
element representing the game card. */ export function createGameCard(manifest, progress) { diff --git a/app/games/orbit-sprite-memory/index.js b/app/games/orbit-sprite-memory/index.js index 813d973..f510fb3 100644 --- a/app/games/orbit-sprite-memory/index.js +++ b/app/games/orbit-sprite-memory/index.js @@ -463,9 +463,9 @@ export function submitSelection() { announce('Incorrect. Reviewing positions before the next round.'); } + clearTimers(); showRoundReveal(_currentRound); - clearTimers(); _timers.push(setTimeout(() => { clearRevealSprites(); _timers.push(setTimeout(() => { @@ -501,7 +501,7 @@ const name = 'Orbit Sprite Memory'; /** * Initializes the plugin and wires UI events. * - * @param {HTMLElement} gameContainer - Injected game container. + * @param {HTMLElement|null} gameContainer - Injected game container. */ function init(gameContainer) { _container = gameContainer;