
Create a complete, fully playable retro top-down 2D GTA-1 st...
Prompt
Create a complete, fully playable retro top-down 2D GTA-1 style open-world crime game inside a single, self-contained index.html file using HTML5 Canvas, CSS, and vanilla JavaScript. No external assets or images are allowed—draw all graphics procedurally using canvas paths, shapes, and vibrant retro colors. Core Requirements: 1. World & Camera: A sizable 2D grid city map with roads, sidewalks, buildings, and green parks. The camera must smoothly follow the player character. Include a small minimap in the top-right corner showing player and vehicle positions. 2. Player Controls: Use WASD or Arrow keys to move, turn, and run. Press 'F' or 'Enter' to enter/exit nearby cars. When on foot, the player can punch/shoot. 3. Vehicles: Several distinct cars parked or driving around the city streets. Driving mechanics should feature smooth acceleration, reverse, steering rotation, and collision with buildings/pedestrians. 4. AI & Pedestrians: Simple NPCs walking on sidewalks. Stealing a car from an NPC triggers a "Wanted Level" (1 to 3 stars) displayed on screen. 5. Police AI: Police cruisers spawn and chase the player if the wanted level is active, attempting to ram or arrest the player if they get too close. 6. UI & Audio/FX: Display health bar, current weapon, current vehicle status, and wanted stars in a retro HUD overlay. Add screen shake or particle effects for explosions and gunshots. 7. Polish: Make sure the code is completely bug-free, clean, well-commented, and runs instantly when opened in any modern web browser.
A system prompt was added to support web rendering