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

Billiards Simulation Game

Create a standalone HTML file containing CSS and JavaScript to generate a billiards game based on Canvas and a simple physics engine.

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

Content

Billiards Simulation Game: Create a standalone HTML file containing CSS and JavaScript to generate a billiards game based on Canvas and a simple physics engine.
The game must display the following core modules through mouse interaction and vector mathematics:
Canvas Physics Rendering System: Use HTML5 Canvas to draw the table, pockets, and multiple balls, implementing smooth ball movement animation via requestAnimationFrame.
Mouse Interaction & Shot Control: Listen for mousedown, mousemove, and mouseup events to enable a complete interaction flow: clicking the cue ball, dragging to determine shot direction and power, and releasing to strike. Provide an aiming guideline/ghost line.
Simple Physics Engine: The core includes collision detection (ball-to-ball, ball-to-boundary), reflection angle calculations based on vector math, and friction simulation to produce basic realistic motion.
Game State & Scoring: Manage the game state. When the target ball is potted, increment the score, and potentially implement logic for resetting the cue ball.
The interface should use a classic green table style, with all code consolidated into a single file. JavaScript must focus on vector mathematics, collision logic, and event handling to achieve an interactive physics simulation game.

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

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

Website Design Recreator Skill

Skill

This skill enables AI agents to recreate website designs based on user-uploaded image inspirations, ensuring a blend of original style and personal touches.

Comments (0)

Sudoku Game

Text

Create an interactive Sudoku game

F@f
0

Memory Card Game

Text

Develop a memory matching card game

F@f
0
H
@hrishirajnagawade
5

Car Repair Manual Writer

Skill

Create a reusable skill for vehicle-specific DIY repair manuals grounded in verified OEM sources. Cover beginner-friendly maintenance, diagnostics, disassembly, rebuilding and engine overhaul. Generate accurate, reviewed black-and-white diagrams in every chapter, embedded beside relevant steps. Use professional 8.5×11-inch layout, 200–230 pages. First provide a detailed outline, page budget and figure-placement plan for one approval; then deliver one complete, illustrated, editable DOCX.

M@muazzamusman0
0

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