Overview
This prompt aims to guide developers in creating a polished 2D action roguelike game using HTML, CSS, and JavaScript. Game developers and enthusiasts will benefit from the detailed requirements and structured approach to game design.
Prompt Overview
Purpose: This game aims to provide an engaging and immersive 2D action roguelike experience for players.
Audience: Targeted towards gamers who enjoy fast-paced action and roguelike mechanics with a unique visual style.
Distinctive Feature: The game features hand-drawn sprites and destructible environments, enhancing visual appeal and gameplay dynamics.
Outcome: Players will experience thrilling combat and exploration in a visually stunning, randomly generated world.
Quick Specs
- Media: Text
- Use case: Content Creation, Enhancement, Expansion & Elaboration
- Industry: Animation & VFX, Content & Media Creation, Productivity & Workflow
- Techniques: Decomposition, Role/Persona Prompting, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a highly polished 2D action roguelike game implemented in a single HTML, CSS, and JavaScript file. The game must meet the following detailed requirements:
– Visual Style and Assets:
– Use original hand-drawn sprite assets and animations for the main character, including:
– Moving
– Jumping
– Rolling
– Attacking animations
– Include animated sprites and textures for enemies resembling zombies.
– Design visually appealing and professional-looking textures and blocks.
– Game Mechanics:
– Implement randomly generated, logically structured maps divided into multiple levels.
– Each level requires the player to kill all enemies to advance.
– Maps should feature varying colors per level and distinct background and foreground blocks.
– Destructible Environment:
– Make blocks destructible with realistic particle effects (e.g., mini block particles) upon destruction.
– Include explosive blocks such as TNT and dynamite that can be triggered by shooting, causing explosions with dynamic particle effects.
– Combat System:
– Provide weapons including guns and a katana.
– The katana should have a slashing attack animation with blood effects.
– Shooting mechanics must allow aiming and firing in multiple directions (front, up, down).
– Ammunition and projectiles should behave realistically, including falling after being shot.
– Movement and Interaction:
– The player can move freely in all directions, jump, roll, and aim/shoot up and down.
– Ensure smooth animations and responsive controls.
– Visual and Audio Effects:
– Include high-quality, professional visual effects such as:
– Blood splashes
– Explosion particles
– Weapon effects
– Integrate sound effects consistent with game events (shooting, hitting, explosions) to enhance immersion.
– Game Map and UI:
– Design a well-structured game map with defined borders, clear level progression, and depth/height logic that influences gameplay.
– Performance and Code Organization:
– Deliver the entire game as a single self-contained HTML file, including embedded CSS and JavaScript.
– Ensure the code is clean, well-commented, and optimized for performance.
# Steps
1. Design and create all sprite assets and animations for:
– Player
– Enemies
– Weapons
– Destructible environment
2. Develop the map generation algorithm to create randomized, logical, and visually appealing levels with distinct color schemes and backgrounds.
3. Implement player movement, combat mechanics (shooting, katana slashing), and enemy AI.
4. Create destructible blocks with particle effects and integrate explosives (TNT, dynamite) with explosion mechanics.
5. Integrate sound effects and particle systems for all relevant actions.
6. Ensure smooth animations and input handling for responsive gameplay.
7. Test each component thoroughly and polish visuals for a professional finish.
# Output Format
Provide a single, self-contained HTML file that includes embedded CSS and JavaScript, running the complete game in a modern web browser without external dependencies.
# Notes
– Emphasize the professional quality of textures, animations, and game mechanics.
– Ensure the map’s design logic supports game progression and player interaction.
– The game should be visually impressive with rich particle and sound effects.
– The player can shoot and move in all four directions with intuitive controls.
Create the game as described, matching the quality and style implied by the provided images and requirements.
Screenshot Examples
How to Use This Prompt
- Copy the prompt for game development requirements.
- Create original sprite assets and animations for characters and enemies.
- Develop a map generation algorithm for randomized levels.
- Implement player movement and combat mechanics.
- Add destructible blocks and explosive elements with effects.
- Integrate sound effects and ensure smooth gameplay.
Tips for Best Results
- Plan Your Assets: Start by sketching out your character and enemy designs to ensure a cohesive visual style.
- Optimize Your Code: Keep your JavaScript organized with clear comments and modular functions for better performance.
- Test Regularly: Playtest each game mechanic as you implement it to catch bugs and ensure smooth gameplay.
- Enhance User Experience: Focus on intuitive controls and responsive animations to keep players engaged and immersed.
FAQ
- What is a roguelike game?
A roguelike game features procedurally generated levels, permadeath, and turn-based gameplay, often with RPG elements. - How are destructible environments implemented?
Destructible environments are created using collision detection, particle effects, and event triggers for explosions. - What are the main character's animations?
The main character has animations for moving, jumping, rolling, and attacking with a katana or guns. - How does the combat system work?
The combat system allows aiming and shooting in multiple directions, with realistic projectile physics and melee attacks.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


