Overview
This prompt aims to guide developers in creating a 2D space shooter game using the ON Core framework. Game developers and coding enthusiasts will benefit from the structured approach and detailed requirements provided.
Prompt Overview
Purpose: This game aims to provide an engaging 2D space shooter experience using the ON Core framework.
Audience: Targeted towards gamers who enjoy fast-paced action and customizable gameplay mechanics.
Distinctive Feature: The game features unique enemy types and progressive difficulty, enhancing replayability and challenge.
Outcome: Players will enjoy a thrilling adventure, improving their skills while aiming for high scores and upgrades.
Quick Specs
- Media: Text
- Use case: Content Creation, Expansion & Elaboration, Generation
- Industry: Content & Media Creation, Data & Analysis, Hospitals & Health Systems
- 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 fully functional 2D top-down space shooter game using the ON Core framework, featuring the following elements:
### 1. Player Ship:
– Movement: Controlled by arrow keys and WASD keys.
– Shooting: Triggered by the Spacebar.
– Health System: Allows the player to sustain 3 hits before the game ends.
– Weapon Upgrades: Include options for laser, missiles, and spread shot.
### 2. Enemies:
– Types: Distinct enemy types such as small fighters, bombers, and formidable bosses.
– Spawn Patterns: Enemies should spawn in random, varied patterns.
– Scoring: Destroying enemies increases the player’s score.
### 3. Game Mechanics:
– Scoring System: Implement a scoring system with persistent high-score saving.
– Power-Ups: Incorporate power-ups that restore health, upgrade weapons, and provide shields.
– Background: Include a smoothly scrolling starfield as the game’s background.
### 4. Visual & Audio Design:
– Graphics: Use pixel-art or vector-style graphics for all visual elements.
– Sound Effects: Integrate sound effects for shooting, explosions, and collecting power-ups.
– Background Music: Add background music that loops seamlessly.
### 5. Difficulty & Progression:
– Progressive Difficulty: Difficulty should increase progressively through waves.
– Boss Fights: Introduce a boss fight every 5 waves.
### Additional Requirements:
– Code Quality: Provide clean, well-structured, and optimized code suitable for ON Core.
– Performance: Ensure smooth performance throughout gameplay.
– Customization: Design the codebase to allow easy customization of key parameters such as ship speed, enemy behavior, and scoring rules.
### Steps:
1. Player Ship Mechanics: Start by setting up movement, shooting, and health.
2. Enemy Types: Implement enemy types with differing behaviors and spawn patterns.
3. Scoring & Power-Ups: Create the scoring and power-up systems.
4. Visual & Audio Components: Develop the visual and audio components.
5. Progression System: Build the progression system with escalating difficulty and periodic boss battles.
6. Configurable Parameters: Add configurable parameters for customization.
### Output Format:
Provide the full source code for the game in a single code block, thoroughly commented to explain each major component and configuration option. Include any assets (graphics, audio) as references or placeholders with clear instructions for integration. Ensure that the code is modular and maintainable.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste the prompt into your coding environment.
- Follow the outlined steps to develop the game.
- Ensure to comment on the code for clarity.
- Test each game feature thoroughly as you implement.
- Integrate assets as specified in the prompt.
Tips for Best Results
- Start Simple: Begin with basic player controls and shooting mechanics to establish core gameplay.
- Iterate on Enemies: Introduce enemy types gradually, focusing on unique behaviors and spawn patterns for variety.
- Enhance Feedback: Integrate sound effects and visual cues for actions like shooting and collecting power-ups to improve player experience.
- Test Difficulty Balance: Regularly playtest to ensure the difficulty curve is engaging, adjusting enemy strength and spawn rates as needed.
FAQ
- What controls the player ship's movement in the game?
The player ship's movement is controlled by the arrow keys and WASD keys. - How many hits can the player ship sustain?
The player ship can sustain up to 3 hits before the game ends. - What happens when enemies are destroyed?
Destroying enemies increases the player's score in the game. - What type of graphics should be used?
The game should use pixel-art or vector-style graphics for visual elements.
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.


