Starblast.io - Ultimate Space Battle Arena

Seele01-Flash
By
Starblast.io is an epic 2D space battle arena where you mine asteroids, upgrade your spaceship, and fight against players worldwide. Build your galactic empire through strategic resource gathering and intense real-time combat.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Starblast.io Clone (Space Shooter)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly, neon sci-fi aesthetic. The background should be a deep space skybox with a starfield particle system (moving slightly to create parallax depth). * **Player Ship**: Construct a sleek, low-poly spaceship using `THREE.ConeGeometry` and `THREE.BoxGeometry` merged together. It should have a primary color (e.g., Cyan) and an emissive engine glow. * **Enemies/AI**: Distinct ship designs (e.g., Red/Orange color scheme) to differentiate from the player. * **Environment**: * **Asteroids**: Use `THREE.DodecahedronGeometry` with random scaling and rotation speeds. They should look like floating rocks with a gray/brown texture or material. * **Gems (Resources)**: Floating red crystals (using `THREE.OctahedronGeometry`) that glow and rotate. These spawn when asteroids or enemies are destroyed. * **Optimization**: Use **Object Pooling** for projectiles (lasers) and particles (explosions/stars) to ensure 60 FPS on mobile devices. Limit geometry complexity. ### 2. Audio Requirements * **BGM**: A driving, retro-futuristic Synthwave/Retrowave track with a steady beat to encourage action. * **SFX**: * **Shooting**: High-pitched digital laser "pew" sounds. * **Impact**: Dull thud for hitting asteroids, metallic crunch for hitting ships. * **Explosion**: Digital rumble/noise burst when an entity is destroyed. * **Collection**: A high-pitched, satisfying chime or "ding" when collecting gems. ### 3. Gameplay Loop * **Core Mechanics**: Top-down arcade shooter physics (inertia-based movement). The player flies around a 2D plane (X and Z axes). * **Mining & Combat**: * Player shoots asteroids to break them. Asteroids have HP and flash white when hit. * When destroyed, asteroids drop **Gems**. * Player collects Gems to fill an "Upgrade Bar". * AI Enemies roam the map and will attack the player if they get too close. * **Progression**: * Simple Upgrade System: When the gem bar is full, the ship automatically upgrades (increases Fire Rate, Speed, or Shield size) and the ship model slightly scales up. * **Win/Loss**: * **Loss**: Player Health reaches 0 (Game Over screen with "Restart" button). * **Win/Score**: Infinite survival. Display a "Score" and "Gems Collected" counter in the UI. ### 4. Mobile Controls & Interaction * **Control Scheme: Dual Virtual Joysticks (Twin-stick shooter style)**. * **Left Joystick**: Controls Movement (Thrust). The ship should rotate towards the movement direction and apply velocity. Includes a slight drift/inertia effect. * **Right Joystick**: Controls Aiming and Firing. Moving the stick rotates the ship (or independent turret) and **automatically fires** lasers while held. * **Screen Adaptation**: Force Landscape orientation logic (camera aspect ratio updates). * **UI Layout**: * Joysticks positioned at the bottom-left and bottom-right corners (touch-friendly, avoiding edge gestures). * Health Bar and Shield Bar floating just below the player ship (world-space UI) or fixed at the top center. * Score/Stats distinct and readable at the top-left. * **Feedback**: * **Visual**: Screen shake effect (camera shake) when the player takes damage or an explosion occurs nearby. * **Haptic**: Trigger `navigator.vibrate(20)` when shooting and `navigator.vibrate(100)` when taking damage (check for browser support). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Starblast.io is the ultimate 2D space battle experience that combines resource management with intense multiplayer combat. In this free-to-play browser game, you'll command your own spaceship in a vast galaxy filled with asteroids to mine, enemies to battle, and empires to build. With a solid 3.2/5 rating from the gaming community, Starblast.io offers hours of strategic gameplay where every decision matters.

Set in an expansive interstellar arena, you're tasked with the noble duty of defending and expanding your cosmic empire. The game perfectly balances peaceful resource gathering with adrenaline-pumping space battles, creating a unique gameplay experience that keeps players coming back for more.

Core Features

Real-Time Multiplayer Combat

Engage in intense battles against players from around the world. Each encounter tests your piloting skills, strategic thinking, and ship customization choices. The game's physics-based combat system makes every shot count.

Resource Mining & Management

Mine asteroids, stars, and planets to collect valuable diamonds and materials. These resources are essential for upgrading your ship and expanding your capabilities. The more you mine, the stronger you become.

Progressive Ship Upgrades

Start with a basic vessel and evolve into a powerful battleship. Each upgrade unlocks new abilities, better weapons, and enhanced defensive capabilities. Choose your upgrade path wisely to match your playstyle.

Strategic Depth

Starblast.io isn't just about shooting - it's about making tactical decisions. Choose your battles carefully, form temporary alliances, and know when to retreat to fight another day.

Game Mechanics

Mining System

Asteroids contain valuable diamonds that serve as the game's primary currency. Larger asteroids yield more resources but take longer to mine, leaving you vulnerable to attacks. Risk versus reward is a constant consideration.

Ship Evolution

As you collect diamonds, you can upgrade to larger, more powerful ships. Each ship class offers different advantages - some excel at mining, others at combat, and some provide balanced capabilities.

Territory Control

Defend key mining areas and establish dominance over resource-rich sectors. Control of strategic locations can make the difference between victory and defeat.

Operation Guide

Basic Controls

  • WASD Keys or Arrow Pad : Accelerate, turn left/right, and brake your spaceship
  • Mouse Movement : Aim your weapons and choose flight direction
  • Left Mouse Button : Fire your primary weapons at enemies and asteroids
  • Right Mouse Click : Access upgrade menus and ship customization

Gameplay Strategy

  • Start by mining small asteroids near safe zones to build up resources
  • Upgrade your ship's mining laser before engaging in combat
  • Watch the minimap for approaching enemies and plan escape routes
  • Form temporary truces with nearby players when facing larger threats
  • Balance offensive and defensive upgrades based on your playstyle

Why Play Starblast.io

Completely Free Experience

Enjoy the full game without any paywalls or premium restrictions. All ships, upgrades, and features are accessible through gameplay progression.

No Download Required

Play instantly in your web browser on any device. The game works seamlessly on desktop computers, laptops, and mobile devices with modern browsers.

Endless Replayability

Each match offers a unique experience with different player interactions, resource distributions, and battle scenarios. No two games are ever the same.

Community & Competition

Join a thriving community of space pilots. Compete for leaderboard positions and develop your reputation as a formidable space commander.

Cross-Platform Compatibility

Whether you're on Windows, Mac, iOS, or Android, Starblast.io delivers the same high-quality gaming experience across all platforms.

Frequently Asked Questions (FAQ)