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

Canvas Game: Create a standalone HTML file containing CSS and JavaScript to generate a modern Breakout game assisted by an AI assistant (e.g., Trae).

Canvas Game: Create a standalone HTML file containing CSS and JavaScript to generate a modern Breakout game assisted by an AI assistant (e.g., Trae).

邱
@loshu2003
10 months agoJanuary 24, 2026 at 12:00 PM
Coding•AI Tools

Content

Canvas Game: Create a standalone HTML file containing CSS and JavaScript to generate a modern Breakout game assisted by an AI assistant (e.g., Trae).
The interface must implement the following core modules through Canvas high-definition rendering and responsive control:
High-Definition Rendering System: The Canvas adapts to the window.devicePixelRatio (DPR) by dynamically obtaining it, sets the physical size and CSS style, and uses ctx.scale(dpr, dpr) to ensure crisp drawing on all screens.
Modular Game Objects: Define the paddle (paddle), ball (ball), and a 2D array of bricks (bricks) using object literals, and encapsulate a brick initialization function (createBricks).
Intelligent Collision & Game Logic: Implement collision detection based on Axis-Aligned Bounding Boxes (AABB). Upon hitting a brick, increment the score and increase the speed level; integrate life (lives) management and game-over conditions.
Multi-Channel Input Control: Support paddle movement control simultaneously via keyboard (arrow keys), mouse movement, and touch events designed for mobile devices.
Main Game Loop & State Control: Drive a loop containing drawing, updating, and detection using requestAnimationFrame, and provide buttons for state control such as start, pause, and reset.
The interface must use a modern CSS variable theme, with all code consolidated into a single file. The JavaScript should focus on physics simulation and state management

Related Prompts

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

Chess Game

Text

Develop a feature-rich chess game

F@f
0

Related Skills

Core Systems Architect: Upgrading the TITAN OMEGA Edge Dashboard

Skill

Act as Core Systems Architect. Upgrade FRACTALMESH/TITAN OMEGA to v10355.0. Expose raw JSON streams (system, telemetry, revenue, logs) via Termux Node.js single-process HTTP/SSE on port 7789 with watchdog. Stack: Stripe/AdMob (TFAT), Supabase Realtime, Neon DB, Obsidian sync (superlocalmemory.git), ngrok, OpenHands, Hermes, KAI9000. Front-end: dense neon-dark console showing raw data blocks & log window. Use box-counting fractal dimension routing optimization ($D=4.5-7.5$).

S@samhiotis
1

# ANTIGRAVITY GLOBAL RULES

Skill

# ANTIGRAVITY GLOBAL RULES

Comments (0)

Memory Card Game

Text

Develop a memory matching card game

F@f
0

Sudoku Game

Text

Create an interactive Sudoku game

F@f
0
S@salihyil
1

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

İ@izzetemre
1