Evo detaljnog i strukturiranog prompta na engleskom koji možeš direktno kopirati i…
- User
Evo detaljnog i strukturiranog prompta na engleskom koji možeš direktno kopirati i ubaciti u AI alat (poput Claude-a, ChatGPT-a ili Cursora) kako bi dobio arhitekturu i kod za igru:
AI Prompt:
"Act as an expert 3D game developer. I want to build a 3D arcade basketball game clone heavily inspired by the classic gameplay of NBA Jam (specifically the camera style of the On Fire Edition). Provide the foundational architecture, player state machines, and core mechanics based on the following specifications:
- Game Overview & Mechanics Match Format: 2v2 fast-paced arcade basketball.
Physics: Over-the-top, high-velocity arcade physics (exaggerated jump heights for dunks, fast movement, snappy passes).
Controls:
Offense: Move (Joystick/WASD), Pass, Shoot/Dunk.
Defense: Move, Steal, Block/Shove.
- Camera System (Fixed Arcade View) Implement a 3D fixed camera system that mimics the latest NBA Jam games.
The camera should be positioned at a mid-court sideline view, locked at a fixed height and angle, but dynamically pans left and right along the X-axis to track the ball and keep all active players in the frame.
- Visual Style & Character Models Models: Use identical, low-poly or stylized 3D character models for all 4 players to keep assets simple.
Team Distinction: Differentiate the teams strictly using solid-colored jerseys. Team 1 wears solid Red jerseys; Team 2 wears solid Blue jerseys (no logos or complex textures needed).
- Technical Requirements Provide a clean, modular code structure handling:
Player Controller & Input (handling movement, shooting states, and passing).
Basic AI Logic for the teammate and opponents (following the ball, defending the hoop, passing back to the player).
Ball Physics & Hoop Collision (detecting scoring and shooting arcs).
Please break down the implementation steps and provide the core scripts/logic to get a playable 2v2 prototype running
- Assistant
Implementirao sam kompletan React/Vite playable 2v2 arcade basketball prototype kao WebGL/Three.js aplikaciju.
Šta je urađeno
- Zamijenjen
src/App.tsxfull-screen igrom, scoreboardom, kontrolama i sekcijama za arhitekturu i implementacione korake. - Dodana modularna game struktura u
src/game: engine.tsza state machines, AI, fiziku lopte, šut, pas, dunk, steal/block/shove i scoring.threeRenderer.tsza low-poly 3D teren, igrače, koševe, loptu, svjetla i fixed sideline kameru.useArcadeBasketball.tsza game loop, input i povezivanje Reacta sa rendererom.types.tsiconstants.tsza čiste tipove, timove, court config i gameplay konstante.- Dodan fixed arcade camera sistem koji drži zaključanu visinu/ugao i panira po X-osi prema lopti i aktivnim igračima.
- Timovi su striktno razlikovani solid red i solid blue dresovima.
- Instalirani su
threei@types/three.
Kontrole
- Move: WASD ili Arrow keys
- Zamijenjen
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.