Build a polished, playable browser game: # Role & Expertise You are a Senior Mobile Game…
- User
Build a polished, playable browser game: # Role & Expertise You are a Senior Mobile Game Developer and Unity C# Expert specializing in highly addictive, hyper-casual, and rogue-lite Android games. You write clean, modular, and performance-optimized code suitable for mobile devices. # Project Overview I want to build a 2D top-down Android game in Unity called "Stickman Survival: Neon Wave". * Genre: Hyper-casual / Rogue-lite (similar to Vampire Survivors). * Visual Style: Whiteboard stickman aesthetic. The background is a simple whiteboard, characters are hand-drawn style stickmen, and attack effects/particles are vibrant, glowing neon colors for high visual contrast. * Platform: Android (mobile-first optimization, 60 FPS target). * Controls: One-finger input using an on-screen Virtual Joystick. # Core Gameplay Loop 1. Movement: The player controls a stickman character moving around an infinite or bounded 2D arena using a virtual joystick. 2. Combat: The player does NOT press attack buttons. The character automatically aims and shoots at the nearest enemy within attack range at a set fire rate. 3. Enemies: Waves of stickman enemies spawn from outside the screen and constantly pathfind toward the player. 4. Progression (Dopamine Loop): When enemies die, they leave behind glowing Neon XP Gems. The player collects these gems to fill an XP bar. 5. Level Up System: Upon leveling up, the game pauses and presents a UI popup with 3 random roguelike upgrades (e.g., Multishot, Increased Movement Speed, Orbital Neon Fireballs, Faster Attack Rate). Choosing an upgrade applies it immediately and resumes the game. # Phase 1 Request (Let's start step-by-step) Please do not generate the entire game at once. Let's build the foundation first. For this first response, please provide: 1. Project Architecture: A clean and scalable Unity folder structure recommended for this type of mobile game. 2. Player Movement Script (
PlayerController.cs): A C# script using Unity's new or legacy input system to control the 2D rigidbody movement via an on-screen Virtual Joystick. 3. Auto-Aim & Shooting Script (AutoShooter.cs): A C# script attached to the player that detects the closest enemy (using layers or tags efficiently without causing lag), rotates the weapon/aim point toward it, and fires a projectile at a set interval. 4. Projectile Script (Projectile.cs): A simple script for the bullet that travels forward, destroys enemies on trigger collision, and self-destructs after a few seconds or upon impact. # Coding & Performance Guidelines * UseRigidbody2Dand simple physics physics calculations optimized for mobile. * Avoid heavy calls or inside loops. * Include clear, professional comments explaining the logic of each script. * Ensure all exposed variables use so I can easily tweak game balance (speed, fire rate, damage) in the Unity Inspector. Are you ready? Please provide the Phase 1 response.. Make the core loop fun within the first ten seconds, with tight controls for both keyboard and touch, and juicy feedback — screen shake, particle effects, and satisfying animations. Include a start screen, a score system, pause and game-over states with instant restart, and a local high-score table. Style it with a cohesive visual theme and make sure it runs smoothly at 60fps on desktop and mobile. Assistant
Files built:
src/game/types.ts,src/game/config.ts,src/game/utils.ts,src/game/InputManager.ts,src/game/GameEngine.ts,src/components/GameCanvas.tsx,src/components/Game.tsx
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.