Retró, a 90-es évek végi DOS-os PC-játékokat idéző low-poly terepjárós kincsvadász verseny a böngészőben — Three.js, saját arcade fizika, szintetizált hangok, nulla letöltendő asset.
Ez a játék az Anthropic Claude Fable 5 modelljének tesztprojektjeként készült: a teljes kódot AI-agentek írták a Claude Code dynamic workflow rendszerével (egy 46 agentes építő- és egy 5 agentes hangolóworkflow — párhuzamos modul-implementáció, integráció, többszempontú adversarial code review, javítás), mindössze 2 óra alatt.
Egyben tisztelgés a legendás magyar Terep 2 előtt, amely pont idén, 2026-ban ünnepli 30. születésnapját. Az eredetit Nagymáthé Dénes készítette 1996-ban DOS-ra: ingyenes volt, szabadon bejárható tereppel és tízféle talajtípussal messze megelőzte a korát — „egy ország játszott vele", öröksége pedig az Invictus Games és az 1nsane felé vezetett. A low-poly dombok, a pixeles textúrák és az ugratós terepjárós életérzés előtte hajt fejet. 🇭🇺
- Rejtett kincsek lapulnak a völgyekben, fák és sziklák mögött — irány nélküli radar (hideg–meleg) vezet feléjük: minél közelebb érsz, annál sűrűbben csipog.
- 1–5 AI ellenfél vadászik veled versenyben ugyanazokra a kincsekre — látod őket a terepen, ütközhetsz velük, akár az aknamezőre is lökheted őket.
- 3 élettel indulsz (az ellenfelek is): életet vesz el az akna, a nagy sebességű frontális becsapódás, a mély víz és a lezuhanás a pálya széléről.
- A tüskés sziklamezők defektet okoznak: ~15 másodpercig lassabb és csúszkálósabb az autó, aztán magától rendbe jön.
- A játszma akkor ér véget, ha minden kincs megvan (vagy matematikailag eldőlt) — a legtöbb kincset gyűjtő nyer. Az eredmények helyi toplistára kerülnek.
| Billentyű | Funkció |
|---|---|
W A S D / nyilak |
gáz / fék / kormány |
Space |
kézifék |
Esc |
szünet |
npm install
npm run dev # → http://localhost:5173Motorhang-választó: a http://localhost:5173/engine-test.html oldalon három motorhang-karakter közül választhatsz (NYOLCHENGERES / RALI / ARCADE) — élőben meghallgathatod őket, a választásod a játékban is érvényesül.
- Vite + TypeScript + Three.js — más futásidejű függőség nincs
- Saját arcade raycast-autófizika (fizikamotor nélkül), 120 Hz fix timestep
- Procedurális, seedelt terep (value-noise heightmap, biomok, kézzel festett hatású, dithered textúrák)
- Retró look: alacsony belső felbontású render target, nearest-neighbor felskálázás, flat shading — a 90-es évek végi PC-s játékok érzése
- WebAudio-szintézis minden hanghoz (motor, radar, robbanás, fanfár) — nincs egyetlen hangfájl sem
- Helyi toplista
localStorage-ban; minden UI-szöveg magyar
A játékterv a PRD.md-ben, a modul-szerződések a src/types.ts-ben, minden hangolási konstans a src/config.ts-ben él.
Terep Kincsvadász ("Terrain Treasure Hunter") is a retro low-poly off-road treasure-hunt racing game for the browser, styled after late-90s DOS-era PC games — Three.js, custom arcade physics, synthesized audio, zero downloadable assets.
This game was built as a test project for Anthropic's Claude Fable 5 model: the entire codebase was written by AI agents using Claude Code's dynamic workflow system (a 46-agent build workflow and a 5-agent audio-tuning workflow — parallel module implementation, integration, multi-lens adversarial code review, fixes), in just 2 hours.
It is also a tribute to Terep 2, the legendary Hungarian off-road game celebrating its 30th anniversary in 2026. The original was written by Dénes Nagymáthé for DOS in 1996: freeware, with a freely roamable terrain and ten surface types, far ahead of its time — "a whole country played it", and its legacy led to Invictus Games and 1nsane. The low-poly hills, the pixelated textures and the bouncy off-road driving feel all bow to the original. 🇭🇺
- Hidden treasures lurk in valleys, behind trees and rocks — a directionless hot/cold radar guides you: the closer you get, the faster it beeps.
- 1–5 AI rivals race you for the same treasures — you see them on the terrain, you can collide with them, even shove them onto a minefield.
- You start with 3 lives (so do the rivals): mines, high-speed head-on impacts, deep water and falling off the edge of the map each cost a life.
- Spiky rock fields cause a flat tire: for ~15 seconds the car is slower and slides more, then it recovers on its own.
- The match ends when every treasure is found (or the outcome is mathematically decided) — whoever collected the most treasures wins. Results go to a local leaderboard.
| Key | Function |
|---|---|
W A S D / arrows |
throttle / brake / steer |
Space |
handbrake |
Esc |
pause |
npm install
npm run dev # → http://localhost:5173Engine-sound picker: at http://localhost:5173/engine-test.html you can audition three engine-sound characters (V8 / RALLY / ARCADE) live — your choice carries over into the game.
- Vite + TypeScript + Three.js — no other runtime dependency
- Custom arcade raycast car physics (no physics engine), 120 Hz fixed timestep
- Procedural, seeded terrain (value-noise heightmap, biomes, hand-painted-looking dithered textures)
- Retro look: low internal-resolution render target, nearest-neighbor upscale, flat shading — late-90s PC-game feel
- WebAudio synthesis for every sound (engine, radar, explosion, fanfare) — not a single audio file
- Local leaderboard in
localStorage; all UI text is Hungarian — part of the charm
The game design lives in PRD.md, the module contracts in src/types.ts, and every tuning constant in src/config.ts.


0 comments
log in to comment.