跳到正文
Naskai· 来源· @UKecom · X·· 8 小时前AI 评分42
正文 · 原文

I've burned some tokens on game dev. This racing game is made entirely of text.

Here's how these ASCII games work.

1. Build a normal 3D scene. Three.js is enough: car, road, trees, camera.

2. Turn it into text. Render the scene small, then swap every block of pixels for a character by brightness (" .:-=+*#%@") and tint it with the original colour. Three.js ships an ASCII effect in its examples.

3. Add the game. A drift is the angle between where the car points and where it's actually moving. Hold it to grow a combo, let a multiplier climb, bank the score when the slide ends, wipe it if you leave the track.

4. Make it readable on a phone. Bigger character cells, a large HUD, brighter night scenes. Fine glyphs turn to mush after compression.

The whole stack is free: Three.js, the ASCII pass, open-source physics, free hosting. The only real cost is the AI writing the code, and that depends on how many rounds it takes.

I'm going to build one with Claude and post the actual token bill.

What game would you want to see rendered in ASCII?

来源:Naskai · x.com