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

Create a standalone HTML file containing CSS and JavaScript to generate an "Avoid the Asteroids" Canvas mini-game rapidly developed with an AI programming assistant (e.g., Trae).

AI-Assisted Space Survival Game: Create a standalone HTML file containing CSS and JavaScript to generate an "Avoid the Asteroids" Canvas mini-game rapidly developed with an AI programming assistant (e.g., Trae).

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

Content

AI-Assisted Space Survival Game: Create a standalone HTML file containing CSS and JavaScript to generate an "Avoid the Asteroids" Canvas mini-game rapidly developed with an AI programming assistant (e.g., Trae).
The interface must implement the following core modules through Canvas rendering and keyboard event driving:
Player & Asteroid System: Define a player spaceship object (containing coordinates, velocity) and an array of asteroids. Asteroids spawn randomly at the top of the screen with varying sizes, speeds, and colors, descending linearly.
Dual-Mode Control & Boundaries: Support spaceship movement in eight directions within the canvas using both WASD and arrow keys, with boundary detection to prevent the ship from exiting the screen.
Collision Detection & Game State: Implement Axis-Aligned Bounding Box (AABB) collision detection. The game ends immediately if the spaceship collides with any asteroid. Manage and switch between three states: start, playing, and game over.
Scoring & Visual Feedback: Track the score based on the number of asteroids successfully passed (reaching the bottom of the screen). Visually render a triangular spaceship and irregular polygon asteroids using Canvas.
Game Loop & Control: Drive the main game loop (containing state updates, collision detection, and drawing) using requestAnimationFrame, and provide start and restart buttons for control.
The interface must use a deep-space black theme with neon green accents, with all code consolidated into a single file.

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

3D Space Explorer

Text

Build an immersive 3D space exploration 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)

Multiplayer 3D Plane Game

Text

Build an immersive multiplayer airplane combat game

F@f
0

3D Racing Game

Text

Create an exciting 3D racing 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