跳到正文
Bulkley Designs· 来源· @BulkleyDesigns · X·· 2 小时前AI 评分15
正文 · 原文

The prompt:
Create a complete single-file (index.html) 3D FPS game using HTML, JavaScript, and CSS, incorporating the following features and details:
Visuals and Gameplay:
– A modern, visually appealing gun model with:
– Shooting animations
– Firing mechanics
– Bullet visuals
– Slight recoil
– Visible hands
– Smooth player movement, including:
– Walking
– Possibly jumping
– A single, well-designed training map featuring:
– Realistic terrain (grass, terrain textures)
– Logical obstacles
– A visually appealing environment
Game Mechanics:
– Bots that:
– Walk around the map and behave logically
– Include features such as:
– Adjustable bot speed (faster/slower)
– Quantity of bots
– Armored bots
– Jumping bots
– Interactive buttons in the training map enabling control over bot behavior, similar to CS:GO training maps (e.g., change bot speed, number, bot types)
User Interface:
– A professional, modern main menu with at least the following buttons:
– Play
– Inventory
– Settings
– Play button that:
– Launches the training map
– Displays a polished loading screen while the game loads
– Settings menu with:
– Audio settings (volume controls)
– Video settings including:
– Resolution options
– FPS limit
– FPS counter toggle
– Additional FPS-related options
– Inventory section displaying all default skins currently in the game
– Shop button allowing purchase of skins using in-game currency
– Implement an in-game currency system starting with 2000 gold; each item costs 1000 gold
– Include at least one default skin for AK-47 and one knife skin (e.g., Karambit Butterfly), purchasable in the shop
– Skin inspection feature available both in the menu and during gameplay, allowing players to view weapon skins closely
Audio:
– Include high-quality sounds for:
– Shooting
– Footsteps
– Reloading
– Menu interactions
Code Quality and Design:
– Use neat, modular, and well-commented code
– Ensure the entire game is packed into a single index.html file
– Interface and visuals should be modern, clean, and professional, showcasing advanced developer skills
# Steps
1. Set up the HTML structure with the necessary canvas or WebGL context.
2. Develop 3D rendering for:
– Weapons
– Hands
– The map
3. Implement player mechanics:
– Movement
– Shooting with animations and recoil
4. Create AI for various bot types with adjustable parameters
5. Build the training map with:
– Obstacles
– Terrain
– Moving targets
6. Design the main menu, loading screen, inventory, shop, and settings interface
7. Add audio effects and volume controls
8. Implement in-game currency and purchase system for skins
9. Enable skin inspection within the menu and gameplay
# Output Format
– A single, standalone index.html file containing all HTML, CSS, and JavaScript to run the described FPS game in a modern browser
– All assets (textures, models, sounds) embedded or referenced so that no external dependencies are required beyond this file
– Well-commented code sections explaining the purpose of key parts
# Notes
– Focus on performance and responsiveness for a smooth FPS experience
– Ensure all UI elements are intuitive and professionally styled
– The game should be fully functional as described, ready for future expansion
Make sure to reason through implementation steps clearly before coding.

来源:Bulkley Designs · x.com