Three.js 铁路模拟游戏,支持等距视角与列车跟随

GPT-6 Astra 用 Three.js 做出蒸汽火车路网游戏:有岔路、城市、河流、桥梁和烟雾,可切换 3D 与等距视角。

Claude Code + Three.js(仅代码)Wandy 2
真实模型 · 360°两者都基于同一张照片:左边是 Claude Code(Opus 5.5)用 Three.js 代码建模的一次未经修改的运行结果;右边是 Wandy 2。

创建精细的 3D 模型

单靠代码只能做出简单的形状。Wandy 2 能用一张照片生成带纹理的 3D 模型,直接用在同一个场景里。

Wandy3D 制作说明

作者没有公开提示词,因此我们写下了复现这个作品的方法。

Build a browser railway simulation game with Three.js. Show a green valley with a river, bridges, a hill, trees, red-brick cities and a network of tracks with junctions linking several stations. Steam locomotives with wagons run along the rails and puff smoke. Offer two camera modes, a free 3D view and an isometric view, plus a follow mode that locks onto a chosen train. Add a clean cream-coloured side panel listing locomotive models with their stats, a top bar with money and income figures, a train selection control and speed settings. Use a muted natural palette with soft daylight and light haze. Trains should move smoothly, slow for junctions and visit stations. Deliver it as a web app that runs from a local server. Done when you can orbit the map, switch cameras, follow any train and see the economy figures update while trains run.

如何使用这条提示词

  1. 在选用 GPT-6 Astra 的编程工具中粘贴构建说明,再用后续提示继续完善。

  2. 修改地图主题、列车年代、经济规则,以及城市和车站数量。

  3. 得到可运行的铁路模拟;继续要求新相机模式、信号系统或多人联机。

原帖你是作者吗? 请联系我们修改或删除此页面