Skip to content

Clarify paddle controls tutorial instructions#43700

Merged
Josh-Cena merged 3 commits intomdn:mainfrom
evgenykolotov:fix-43661-paddle-controls-wording
Apr 7, 2026
Merged

Clarify paddle controls tutorial instructions#43700
Josh-Cena merged 3 commits intomdn:mainfrom
evgenykolotov:fix-43661-paddle-controls-wording

Conversation

@evgenykolotov
Copy link
Copy Markdown
Contributor

Description

Clarifies the instructions in the paddle controls tutorial so they no longer imply that the keydown and keyup listeners should be added directly above the setInterval() line.

Motivation

The page text and the live sample were structured differently, which made the instructions look inconsistent and caused confusion for readers following along with the tutorial.

Additional details

Adds a short note explaining why the live sample places the event listeners outside startGame() while wrapping setInterval() in a button-triggered function.

Related issues and pull requests

Fixes #43661

@evgenykolotov evgenykolotov requested a review from a team as a code owner April 7, 2026 21:41
@evgenykolotov evgenykolotov requested review from hamishwillee and removed request for a team April 7, 2026 21:41
@github-actions github-actions Bot added Content:Games Games docs size/xs [PR only] 0-5 LoC changed labels Apr 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

@Josh-Cena Josh-Cena merged commit 56718ef into mdn:main Apr 7, 2026
9 checks passed
@evgenykolotov evgenykolotov deleted the fix-43661-paddle-controls-wording branch April 8, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Games Games docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code example and instructions differ

3 participants