feat(frontend): implement Atari-style Pong game screen#1
Open
HMaziviero wants to merge 2 commits intomainfrom
Open
feat(frontend): implement Atari-style Pong game screen#1HMaziviero wants to merge 2 commits intomainfrom
HMaziviero wants to merge 2 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
AppUI with a small playable Atari-style Pong experience rendered on<canvas>to provide an interactive demo screen.craco/react-scriptsto fail at build/start.Description
frontend/src/App.jsimplementing a Pong game loop usingrequestAnimationFrame, paddle AI, ball physics, collisions, scoring, pause/restart, and keyboard controls (W/S,↑/↓,Space,R).frontend/src/App.cssto create an Atari/arcade look (dark background, scoreboard, controls, canvas styling and winner banner).ajvtofrontend/package.jsonand committed a generatedfrontend/package-lock.jsonto resolve module errors encountered when building withcracoandreact-scriptsin this environment.Testing
npm install --legacy-peer-deps --no-audit --no-fundinfrontendand the dependency installation completed successfully.npm run buildinfrontendand the production build completed successfully with a readybuildfolder.npm startinfrontendand it compiled successfully for manual inspection.http://127.0.0.1:3000and captured a screenshot of the Pong home screen, which validated the UI rendering.Codex Task