prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Classic Arcade Game

Create a standalone HTML file that includes both CSS and JavaScript to generate a Block Breaker game with Canvas rendering.

邱
@loshu2003
10 months agoJanuary 26, 2026 at 12:10 AM
Coding•AI Tools

Content

Classic Arcade Game: Create a standalone HTML file that includes both CSS and JavaScript to generate a Block Breaker game with Canvas rendering.

The game will showcase the following core modules through object-oriented design and physical simulation:

1. **Object-oriented design**: Define game objects using classes or constructors, including `Paddle` (racket), `Ball` (ball), `Brick` (brick), and `Score` (score system). These objects encapsulate their respective properties (position, speed) and methods (drawing, updating).
2. **Canvas Rendering and Game Loop**: Use HTML5 Canvas to draw all game elements. Implement a smooth animation loop using `requestAnimationFrame` to update object states and redraw within the loop.
3. **Physics and Collision System**: Implement the trajectory of small balls and integrate a collision detection system to accurately handle collisions and rebound logic between the balls and bricks, rackets, and the edges of the canvas.
4. **Game State and Interaction Controls**: Manage game states (start, pause, finish, restart), and provide interactive features such as mouse movement, directional key control for the racket, and the spacebar for pausing/resuming.
5. **Difficulty and Progression**: Design a system for calculating scores and implement mechanisms that increase difficulty as the game progresses (e.g., by speeding up the movement of the ball).

The interface features a classic arcade style, with all code integrated into a single file. JavaScript is focused on object modeling, physical simulation, collision algorithms, and state control to enable an expandable brick-breaking gameplay experience.

Related Prompts

Memory Card Game

Text

Develop a memory matching card game

F@f
0

Build a DDQN Snake Game with TensorFlow.js in a Single HTML File

Text

Create a Deep Q-Network (DQN) based Snake game using TensorFlow.js with the latest API, implemented in a single HTML file.

N@niels
1

Related Skills

AST Code Analysis Superpower

Skill

AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.

İ@izzetemre
1

AWS Cloud Expert

Skill

Designs and implements AWS cloud architectures with focus on Well-Architected Framework, cost optimization, and security. Use when: 1. Designing or reviewing AWS infrastructure architecture 2. Migrating workloads to AWS or between AWS services 3. Optimizing AWS costs (right-sizing, Reserved Instances, Savings Plans) 4. Implementing AWS security, compliance, or disaster recovery 5. Troubleshooting AWS service issues or performance problems

Comments (0)

Sudoku Game

Text

Create an interactive Sudoku game

F@f
0

Chess Game

Text

Develop a feature-rich chess game

F@f
0
İ@izzetemre
1

Accessibility Expert

Skill

Tests and remediates accessibility issues for WCAG compliance and assistive technology compatibility. Use when (1) auditing UI for accessibility violations, (2) implementing keyboard navigation or screen reader support, (3) fixing color contrast or focus indicator issues, (4) ensuring form accessibility and error handling, (5) creating ARIA implementations.

İ@izzetemre
1

Accessibility Testing Superpower

Skill

Performs WCAG compliance audits and accessibility remediation for web applications. Use when: 1) Auditing UI for WCAG 2.1/2.2 compliance 2) Fixing screen reader or keyboard navigation issues 3) Implementing ARIA patterns correctly 4) Reviewing color contrast and visual accessibility 5) Creating accessible forms or interactive components

İ@izzetemre
1