Three.js 空中缆车游戏:穿梭于漂浮低多边形岛屿之间
这是一次对比:同一提示词交给 GPT-6 Astra 和 Gemini 4。Astra 的版本是带工坊改装界面的温馨电车游戏。
Claude Code + Three.js(仅代码)Wandy 2
创建精细的 3D 模型
单靠代码只能做出简单的形状。Wandy 2 能用一张照片生成带纹理的 3D 模型,直接用在同一个场景里。
GPT-6 Astra 提示词
Create a single-file HTML/JS 3D game (Three.js) that can be played directly in the browser, with a warm, low-poly but polished indie game style, evoking the feel of a Ghibli seaside town combined with the smoothness of Zelda's mine cart tracks. 【Core Gameplay】 The player drives a retro aerial tram, traveling between islands floating above a sea of clouds and the ocean surface. - The track is a continuous 3D railway, featuring straight sections, uphill slopes, downhill slopes, elevated curves, and long bridges across the sea - Controls: W to accelerate (Power), S to brake (Brake), left and right for fine-tuning or switching the view - Real-time display: speed in km/h, number of passengers on board (e.g., 12/16 aboard), road conditions (Steady / Crosswind) - Passenger comfort system: sudden acceleration, hard braking, taking corners too fast, and crosswinds all reduce "leg comfort"; arriving at the destination smoothly earns bonus points (e.g., +75 at arrival) - Streak: driving too bumpily will trigger the message "Streak broken. Find your balance to rebuild your tips." - Arrive at the station, open the doors for passengers to get on and off. On the platform, there are townsfolk queuing up, with subtitles such as "Doors opening - Mango Tide," "Please wait…" [World and Stations] At least two routes/two islands: 1. Saltlight Terminus 2. Mango Tide The island is a rocky island floating above the clouds, with small Mediterranean/Southern European-style houses with red-tiled roofs, a lighthouse, a dock, green trees, streetlights, and warm yellow windows at night. In the distance, there are more floating islands and circling orbits. The sky is a blue-purple gradient from dusk to night, with stars and thick clouds, and below is azure seawater. [Tram Exterior] Retro tram: dark green body, wood-colored chassis, curved glass windows, roof luggage, green awning/vine decorations, and various passengers sitting inside. While moving, there is a slight swaying motion and a sense of track sounds (which can be conveyed with simple sound effects or visual cues). [Scene 2: Workshop Modification] Switch to the top-down isometric view of the workshop "Cloudworks / Oliver Cloudworks / Oliver's home island." Players can swap parts for the tram, with an interface like an upgrade pop-up: - Hearth leaves — Lifting the old part - Little Companion — Preparing the tram Progress bar + "Sit back and watch the workshop." Changes to the tram's appearance after modification (e.g., green roof, added luggage rack, lanterns, vines), then it drives out of the workshop, subtitles "All aboard." / "Next stop: the Coastal Line." [UI] Clean modern casual game UI: destination and currency/streak in the top-left, speed bar and Power/Brake buttons at the bottom, comfort progress bar connecting the two station names. No clutter, don't make it horror or cyberpunk. [Technical Requirements] - Single file or minimal files, Three.js - Use curves for the track (CatmullRom, etc.) so the tram follows the rails, camera follows with a slight rail feel - Simple physics feel: acceleration inertia, braking deceleration, body roll when cornering - On mobile, try to also support tap to accelerate/brake - Readable code, with comments, playable as soon as it's opened.
如何使用这条提示词
把提示词交给 GPT-6 Astra(也可换其他模型对比),要求输出单个 HTML 文件。
改掉站名、车辆、岛屿主题和配色,让世界属于你自己。
打开文件体验路线,再让模型调整舒适度计分、镜头手感或工坊改装内容。
原帖你是作者吗? 请联系我们修改或删除此页面





