interdimensional-game README

The project's README from github.com/blendi-remade/interdimensional-game. As one markdown file: README.md.

🎬 LAST FRAME

A playable film. Every shot is generated as you watch, and the video model is the dice: whatever happens on screen is what happened, whatever you intended. You asked to leap the chasm; the frame shows you dangling from the ledge by one hand? That's what happened. Take the damage.

Powered by fal + MiniMax H3 Max, a video model faster than realtime, which makes a game rendered by a video model possible: the next shots film while the current one is still playing, so picking one plays with no gap.

Two engines live in this repo:

From a run of THE LOST TAPE, the found-footage horror world. Shot 19: the rocking chair starts moving on its own while the next choices film over the still-rolling clip.

Shot 19 of THE LOST TAPE: a rocking chair moving on its own in a candle-lit room, with the live choice board over the footage

Shot 26, 5 vitality left. It stopped keeping its distance.

Shot 26 of THE LOST TAPE: a pale figure standing behind a candle in the misty night woods

The rules

Live Horror

Five worlds on one continuous Director stream. Each is a different fear grammar, and each carries two hidden decks the Director GM draws from at random, so nobody can predict the beat:

World The rule
THE LOST TAPE: LIVE Night woods, a rotting farmhouse, a tall pale shape that is always somewhere it should not be.
BLACKOUT An apartment tower losing power. The shadow exists only where there is no light, and every light is failing.
MIRRORS A grand empty house of glass. The wrongness lives only in reflections, until it does not.
MILE MARKER A night drive that will not end. The same figure on the shoulder, a mile later, closer to the road.
FOGBOUND A fog-drowned coastal town that emptied mid-dinner and is slowly remembering its people.

How a live run works:

Quick start

npm install
cp .env.example .env.local   # put your fal API key in it
npm run dev

Get a key at fal.ai/dashboard/keys. Open http://localhost:3000 and pick a world. The live worlds use the alpha line of @fal-ai/client for fal.realtime.open.

How the shot engine works

opening ──► play ──► ADJUDICATOR rules mid-playback (zero wall-clock)
              │            │
              │            ▼
              │      options surface OVER the rolling clip
              │      3 branches pre-film in parallel (i2v from the last frame)
              │      each ready branch is pre-adjudicated too
              ▼
     pick mid-clip: rolls the instant the shot ends ──► loop
     no pick: freeze-frame + timer ──► the world's own shot

Cost note

A shot-engine run films ~3 branch clips per choice plus one shot that plays, at 480P / 10s each, plus a few small LLM calls per beat. A live horror run is a Director session, billed per second of stream with a 60-second minimum, so budget a couple of dollars per two-minute tape. Keep an eye on your fal usage; dying is the cheapest way to stop.

interdimensional-game (blendi-remade/interdimensional-game)

Searching Database…

这是什么?这是 LAST FRAME:一款像实时生成的电影一样游玩的游戏。你观看时,视频模型会把每一个镜头实时渲染出来,而模型本身就是骰子——如果画面里你的主角没跳过去、而是挂在悬崖边上,那事情就是这样发生了。
这是在浏览器里打开的网站,还是需要下载安装的软件?不需要安装:这是一个用 Next.js 和 React 构建的浏览器网页应用。所有视频生成都在服务端通过 fal 完成,你的 FALKEY 永远不会到达客户端。
我怎么开始玩?在 fal.ai/dashboard/keys 获取一个 fal.ai API 密钥,打开应用并选择一个世界。想自己跑起来就是一个标准的 Next.js 应用:开发用 npm run dev,生产环境用 npm run build 和 npm start。
我需要自己注册 AI 服务账号才能玩吗?一个 fal.ai 密钥就全搞定了:MiniMax H3 Max 以快于实时的速度拍摄镜头,裁决者(Adjudicator)裁判则是通过 fal 的视觉路由调用的 Gemini Flash Lite。实时世界使用 alpha 版本的 @fal-ai/client。
有什么坑吗——玩起来要花多少钱?消耗的是你的 fal 额度。镜头引擎每运行一次,每个选项大约会拍摄 3 段 480P/10 秒的分支片段;实时恐怖模式按流媒体秒数计费,最低 60 秒起步,所以一段两分钟的片子请预留几美元的预算——而且挂掉是止损最便宜的方式。
一局游戏实际上是怎么进行的?每个节点播放一段片段,画面上叠加三个选项:按 1、2 或 3,点击,或者输入你自己的行动。三 条分支都会在片段播放的同时并行拍摄,所以你一做出选择就能无缝切到结果。冒险的输入动作会掷一枚可见的 d20 骰子;如果一直犹豫到片段播完,世界就会替你做主来一镜头——而且绝不会偏向你。
镜头世界和实时恐怖世界有什么区别?镜头世界(EVERYDOOR、THE LOST TAPE)把一段段独立的 10 秒片段串起来,每个节点预先拍好三条分支,还有裁决者必须看到完成的任务目标。实时恐怖则是通过 WebRTC 的一条连续导演流——没有片段、没有剪辑——横跨五个世界:THE LOST TAPE: LIVE、BLACKOUT、MIRRORS、MILE MARKER 和 FOGBOUND。
我真的会死吗?由什么决定?你有 100 点生命值和一条命。裁决者是一个视觉大语言模型,会盯着每个镜头的每一帧,看到什么就照实扣血,每次变化都附带一张证据截图。死亡会解锁一段最终生成的过场动画和你整局跑团的逐镜头时间线;开放世界没有目标,就看你能走多远。
我的主角捡到的东西真的有用吗?有用。主角在画面里 visibly 拿到的东西会变成一张物品卡,附带它来源的那一帧,而每件物品都是一段存储下来的提示词片段:启用它,它就一定会被写进你的下一个镜头。
Size
11.6 MB
Stars
250
Updated
CommitSep 04
Age
1mo
Commits · 90 Days