Fruit Slash

官方games 的一部分

caputchin/games/fruit-slash

Swipe to slice the flying fruit, avoid the bombs.

  • 街机
  • 其他

实时预览

正在加载游戏预览…

预览预设

用作者声明的不同预设试玩这个游戏。更改预设会重新加载游戏,让新值在挂载时生效。

在付费套餐上进一步定制这个游戏
  • 按站点密钥覆盖配置Solo+
  • 扩展语言包Alpha+
  • 自定义游戏皮肤Alpha+
  • 为挂件外壳做白标Apex

From the project README

Fetched live from GitHub via jsDelivr

Fruit Slash

Swipe to slice the flying fruit, avoid the bombs. A Caputchin first-party game, written clean-room in framework-free TypeScript and rendered on a 2D canvas so the play field is opaque to DOM scrapers.

How it plays

Fruit and the occasional bomb are launched from the bottom of the field on real projectile arcs (constant horizontal velocity, gravity-only vertical). They enter and leave only through the bottom border, never crossing a side or the top. Swipe across a fruit to slice it; let a fruit fall past the floor unsliced, or slice a bomb, and you lose a life.

Slicing the configured pass score of fruit reports success (bridge.pass) and lights a Verified badge, but the round does not stop there: you keep slicing to raise your score, and the final (highest) score is re-reported when the round ends. The round ends only when lives run out. Difficulty ramps up over time (faster spawns, more bombs), so the score chase gets harder.

Sound effects (slice / miss / verify) are synthesized at runtime (no audio files); an in-game mute toggle turns them on/off, and the host can default them off via config. Colors, the fruit palette, and optional fruit/bomb art are skinnable; difficulty (pass score, lives, spawn rate, gravity, bomb chance) is configurable; all copy is localized. Light and dark are separate skins the host picks.

Frame-rate independence

The game runs its own requestAnimationFrame loop driven by real elapsed time: every physics step is scaled by the delta in seconds (clamped after a stall), and the field is rendered every frame at the native refresh rate. The arc plays at the same real-world speed on a 60Hz or a 240Hz display. This is enforced by tests/frame-rate.test.ts; do not reintroduce any per-frame ("MS_PER_FRAME") coupling.

Storage

The game runs in a sandboxed, opaque-origin iframe, so localStorage is unavailable. No score is persisted; session state is in memory only.

Source: github.com/caputchin/games

加载挂件包后,把它放进任意 HTML 页面(见安装)。把 sitekey 占位符换成你在仪表盘里的那个。

HTML
<caputchin-game
  sitekey="<your_public_sitekey>"
  game="caputchin/games/fruit-slash"
></caputchin-game>

验证与游戏并行运行。你的表单会在 caputchin-token 里收到一个包装好的令牌,用于通过 /siteverify 在后端验证。

自适应触摸输入屏幕阅读器音频可选

Caputchin 不会核实这些。具体以作者的仓库为准。

语言11
  • en
  • zh-Hans
  • es
  • ar
  • pt
  • fr
  • de
  • ru
  • ja
  • ko
  • id
主题亮色和暗色
可定制
  • 文本
  • 皮肤
  • 玩法

客户可在自己的站点上覆盖这些预设,视方案而定。

Caputchin

caputchin.com

Fruit Slash · Caputchin Marketplace