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

Frog Feeding Arcade Game: Create a standalone HTML file containing CSS and JavaScript to generate a Frog-eats-Fly arcade game based on Canvas.

Frog Feeding Arcade Game: Create a standalone HTML file containing CSS and JavaScript to generate a Frog-eats-Fly arcade game based on Canvas.

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

Content

Frog Feeding Arcade Game: Create a standalone HTML file containing CSS and JavaScript to generate a Frog-eats-Fly arcade game based on Canvas.
The game must display the following core modules through keyboard control and a game loop:
Canvas Rendering System: Use HTML5 Canvas as the primary rendering surface, drawing basic shapes such as the frog (player) and flies (targets) using methods like fillRect.
Object-Oriented Design: Define game objects (e.g., Frog, Fly) using JavaScript classes or constructor functions, encapsulating properties such as position, velocity, state, and drawing methods.
Game Loop & State Management: Utilize requestAnimationFrame to implement a smooth main game loop that updates object positions, detects collisions, and redraws the scene. Manage global states such as score and lives.
Keyboard Interaction & Collision Detection: Listen for left and right arrow key events to control the frog's horizontal movement. Implement simple rectangular bounding box collision detection to determine if the frog has eaten a fly, updating the score or lives accordingly.
Core Game Logic: Flies spawn at random positions at the top of the canvas and fall downwards. The player must control the frog to catch them. The score increases for each fly caught, while lives decrease if a fly is missed. The game ends when lives are depleted.
The interface should adopt a minimalist Canvas graphics style, with all code consolidated into a single file. JavaScript should focus on object management, physics simulation, and event response to achieve a lightweight feeding challenge experience.

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

Memory Card Game

Text

Develop a memory matching card 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)

Multiplayer 3D Plane Game

Text

Build an immersive multiplayer airplane combat game

F@f
0

Sudoku Game

Text

Create an interactive Sudoku game

F@f
0
H
@hrishirajnagawade
5

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

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