CrushAI · Claude 3.5
Game information
AI generation prompt
Copy this prompt to study or reproduce the game.
《Crush》产品需求文档 (PRD)
1. 游戏概述 (Game Overview)
- 游戏名称: Crush
- 元描述: "Crush" is a sandbox game where players control a camera over a vast asphalt plane. The game focuses on exploration and interaction with the environment through dynamic camera movements.
• Explore a 1000x1000 pixelated asphalt ground plane with intuitive drag, scroll, and multi-touch camera controls. • Dynamic key lighting casts realistic shadows, enhancing the visual experience of the blocky, Minecraft-style world.
- 屏幕方向: 横屏 (Landscape)
- 适配平台: PC网页端 / H5移动端
2. 核心功能与系统设计 (Core Features & Design)
以下是根据 AI 对话创作历史整理的核心系统模块:
- 核心机制: Hey there! What kind of game do you want to create?
- 核心机制: I've created Crush - your pixelated asphalt sandbox! You've got a massive 1000x1000 blocky plane with dynamic shadows and full camera freedom. Drag to pan across the surface, scroll to zoom in and out, and use two fingers to rotate your view (or right-click drag on desktop).
- 核心机制: Done! I've stripped away all the UI clutter—no more mode indicator, help button, menu button, or controls drawer. Now you've got a pure, clean 3D viewport with just the canvas. Your camera controls are still fully functional, and you can still access settings in Edit mode. Perfect blank canvas for adding gameplay! 🎮
- 核心机制: No, there's no "unit" variable in the game currently. The game uses raw numeric values for distances (like cameraDistance), angles (like cameraAzimuth), and positions. Were you thinking of adding a unit system for scaling or measurements?
- 核心机制: Done! I've added a unit system where 1 unit = 2.5 pixels. You can now reference window.gameConfig.unit whenever you need consistent scaling for objects and measurements throughout the game.
- 核心机制: Your curb grid is ready! I've added a 4×4 array of flat concrete cuboids (36×36 units each, 0.6 units tall) spaced 24 units apart and perfectly centered on the ground plane. Each curb has a pixelated concrete texture tiled 4×4 for that authentic Minecraft look, and they all cast and receive shadows from your key light. Zoom in and pan around to see them! 🏗️
- 核心机制: Your curb grid now covers the entire 1000×1000 ground plane! The concrete pattern tiles seamlessly across the whole map, giving you a massive pixelated surface to explore. 🎮
- 核心机制: Your concrete texture is getting a makeover! I've started generating a new version with a more neutral grey tone and visible cracks running through it for that weathered, realistic look. The texture will tile perfectly across all your curbs. 🏗️
- 核心机制: Your concrete texture is getting that perfect 808080 grey tone with visible cracks! The new texture is generating now and will tile beautifully across all your curbs. 🏗️
- 核心机制: Your concrete texture is now getting a pavement makeover! I've started generating a new version with that weathered asphalt look while keeping the cracks and grey tone. Your curbs will look like a proper road surface once it's ready! 🛣️
3. 游戏参数配置 (Game Configuration)
{
"camera": {
"targetX": 0,
"targetY": 0,
"targetZ": 0,
"distance": 300,
"azimuth": 45,
"elevation": 45
},
"lighting": {
"keyLightIntensity": 1.5,
"ambientIntensity": 0.4,
"keyLightX": 100,
"keyLightY": 200,
"keyLightZ": 100
},
"ground": {
"size": 1000,
"textureRepeat": 20
},
"ui": {
"theme": "blocky-sandbox",
"primaryColor": "#4CAF50",
"accentColor": "#2196F3",
"drawerDefaultOpen": false
},
"unit": 2.5,
"curbs": {
"width": 36,
"length": 36,
"height": 0.6,
"spacing": 24
}
}
4. 迭代开发历史 (Iterative History)
本文档基于 AI 团队的开发记录整理生成。以下是游戏历史版本的主要演进过程:
- 步骤 1 (2025-12-14 14:36:06): Create a game called "Crush". There should be a 1000x1000 ground plane with a tiling asphalt texture in a pixelated, Min
- 步骤 2 (2025-12-14 14:36:27): Ok, create it!
- 步骤 3 (2025-12-14 14:47:00): Get rid of the "Play Mode" thingy, the info and settings/hamburger buttons. The game does not yet any kind of UI, so cle
- 步骤 4 (2025-12-14 14:53:41): is "unit" a variable in this game?
- 步骤 5 (2025-12-14 14:56:02): it will be for scaling and measurements and it will be 2-3 pixels big
- 步骤 6 (2025-12-14 15:02:36): Create a 4x4 array of flat cuboids representing curbs, each 36 units wide, 36 long, and 0.6 tall, laying flat on the gro
- 步骤 7 (2025-12-14 15:04:23): add more to cover the whole map
- 步骤 8 (2025-12-14 15:07:35): (user selected asset concrete_texture) make this more grey and it will have a few cracks
- 步骤 9 (2025-12-14 15:10:13): make the tint of the concrete will be #808080
- 步骤 10 (2025-12-14 15:11:36): (user selected asset concrete_texture) now make it look like pavement but it still has the cracks
- 步骤 11 (2025-12-14 15:13:16): Within each curb, laid flat on top, and centered along the X and Z axes create another cuboid, this one 28x28x0.3. This
- 步骤 12 (2025-12-14 15:14:35): (user selected asset grass_texture) make it look top view
- 步骤 13 (2025-12-14 15:17:49): Within each lawn, laid flat on top, and centered along the X and Z axes, create another cuboid, this one 20x20. Its heig
- 步骤 14 (2025-12-14 15:20:22): generate a texture for the top of the building where it looks like grey concrete but it has no cracks
- 步骤 15 (2025-12-14 15:23:21): Generate two new textures, both square, pixelated, Minecraft-style depictions of office building facades. The first shou
- 步骤 16 (2025-12-14 15:24:45): (user selected asset building_roof_texture) make it a bit more darker
- 步骤 17 (2025-12-14 15:33:05): make that 15% of all curbs will now just be grass lawns (but keep the concrete) while the 80% will be buildings without
- 步骤 18 (2025-12-14 15:36:43): and the 75% of the grass only curbs will have trees in the middle of the curb/lawn which are randomly assinged with the
- 步骤 19 (2025-12-14 15:37:59): make that the trees will now be cuboid
- 步骤 20 (2025-12-14 15:40:19): make that now the trees textures are tiled 0.8-1.2
- 步骤 21 (2025-12-14 15:44:54): Each tree should also generate leaves. Starting 30 units below the top of the trunk, create three cuboids stacked perfec
- 步骤 22 (2025-12-14 15:46:25): why i dont see the leaves? maybe make them larger or not transparent
- 步骤 23 (2025-12-14 15:50:09): Generate a square texture depicting a pixelated, Minecraft-style plant on a transparent background. The plant should mak
- 步骤 24 (2025-12-14 15:51:36): dont make some grass outside of the grass lawn
- 步骤 25 (2025-12-14 15:52:22): Each plant should actually be two planes, the second an exact copy of the first, but rotated 90 degrees about the Y-axis
- 步骤 26 (2025-12-14 15:55:48): now generate a 2 variants of the plant where its a flower (25% of all plants will be flowers)
- 步骤 27 (2025-12-14 16:04:24): add a item selection bar for future features and in that bar, there will be a nuke button which if you tap it, nuke wil
- 步骤 28 (2025-12-14 16:08:24): make that it could destroy trees and plants and it will create a mushroom cloud with the colors from its particles and i
- 步骤 29 (2025-12-14 16:12:02): make that the leaves can also get destroyed and buildings will now fall when they get destroyed and when it hits the gro
- 步骤 30 (2025-12-14 16:18:29): make that when buildings fall, they will have a 2 second timer which does not allow them to get destroyed when touching
- 步骤 31 (2025-12-14 16:21:23): fix the bug where the leaves wont vanish when they are nuked/destroyed and make that the trees, flowers and plants WILL
- 步骤 32 (2025-12-14 16:26:56): (user selected the game thumbnail) make that the thumbnail will be a nuke destroying a city and there will be fire every
- 步骤 33 (2025-12-14 16:30:35): add cars that move around the city and they can get destroyed
- 步骤 34 (2025-12-14 16:35:22): make that there will be an invisible border where cars cant cross and make the cars will have octagonal wheels and they
- 步骤 35 (2025-12-14 16:37:22): make that the cars rotate when they turn
- 步骤 36 (2025-12-14 16:39:25): flip the cars angle to 90 degrees
- 步骤 37 (2025-12-14 16:41:50): remove the wheels of the cars and now the cars colors will be #0d0d0d, #de3535, #e0e0e0 and #fcba03 and the cars will ha
- 步骤 38 (2025-12-14 16:46:02): make that the top part of the cars will be the windows instead and make that when cars get out of the map, they despawn
- 步骤 39 (2025-12-14 16:53:45): make that when a nuke is dropped, it will create a transparent sphere with the color #d49c59 that becomes bigger every 0
- 步骤 40 (2025-12-14 16:57:14): make that if a car, plant or tree/leaf gets touches the blast wave, it will get destroyed and add a new destruction item
- 步骤 41 (2025-12-14 17:09:40): make that earthquakes will not make grass dead and not destroy plants and when a building/tree gets hit by an earthquake
- 步骤 42 (2025-12-14 17:12:11): make that while the buildings and trees are falling, they will produce particles and will not rotate and when an earthqu
- 步骤 43 (2025-12-14 17:20:05): make that cars can collide with each other, causing them to get destroyed and when a building is destroyed by an earthqu
- 步骤 44 (2025-12-14 17:23:06): suggest new features and destruction things
- 步骤 45 (2025-12-14 17:49:06): add a feature named control with the 🛞 emoji where you can control cars with joystick or wasd and arrow controls
- 步骤 46 (2025-12-14 17:52:54): make that when you control a car, the camera follows the car
- 步骤 47 (2025-12-14 17:54:35): add more traffic density and add meteor strike
- 步骤 48 (2025-12-14 17:58:50): make that destroyed buildings and trees now rotate a bit and add sounds for things getting destroyed
- 步骤 49 (2025-12-14 18:04:11): make that the destruction sound only plays when a car collides with another car and the sound will get more quiet the mo
- 步骤 50 (2025-12-14 18:09:10): make that the wreck particles will now last for the same time as normal particles and it will instead be based off the c
- 步骤 51 (2025-12-14 18:16:03): decrease the amount of particles emitted by crashing cars by 75%
- 步骤 52 (2025-12-14 18:19:02): make that the police lights will also rotate when the car turns and the police lights will be a cuboid and now the polic
- 步骤 53 (2025-12-14 18:22:04): fix the bug where the police cars lights and windows wont vanish when they are destroyed
- 步骤 54 (2025-12-14 18:25:36): make that the nuke will be a falling object and add tornado
- 步骤 55 (2025-12-14 18:30:53): add a hamburger menu from the top left and there is an option to disable particles
- 步骤 56 (2025-12-14 19:59:02): make that when controlling a car, it will make a sound and nukes will make a loud explosion sound that lasts 8 seconds
- 步骤 57 (2025-12-14 20:01:51): make that car crashes now have a 10% chance to produce particles