معاينة حيّة
جارٍ تحميل معاينة اللعبة…
From the project README
Fetched live from GitHub via jsDelivrFruit 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 النائب بعنصرك من لوحة التحكّم.
<caputchin-game
sitekey="<your_public_sitekey>"
game="caputchin/games/fruit-slash"
></caputchin-game>يجري التحقّق جنبًا إلى جنب مع اللعبة. يتلقّى نموذجك رمزًا مُغلَّفًا في caputchin-token للتحقّق في الخادم عبر /siteverify.
لا يتحقّق Caputchin من ذلك. راجع مستودع المؤلف لمعرفة الحقيقة.
- en
- zh-Hans
- es
- ar
- pt
- fr
- de
- ru
- ja
- ko
- id
- النص
- المظهر
- اللعب
يمكن للعملاء تجاوز هذه الإعدادات على مواقعهم، بحسب الباقة.
Caputchin
caputchin.com- معرّف اللعبة
- caputchin/games/fruit-slash
- مستودع GitHub
- caputchin/games
- نجوم GitHub
- 0
- حزمة npm
- @caputchin/game-fruit-slash
- نقطة دخول الحزمة
- dist/fruit-slash.js
- الحجم المفضّل
- 800px × 420px
- التخطيط المفضّل
- Modal
- الإصدار المثبّت
- 0.3.2
- عنوان URL للحزمة
- https://cdn.jsdelivr.net/npm/@caputchin/game-fruit-slash@0.3.2/dist/fruit-slash.js
- سلامة المورد الفرعيّ
- sha384-wxxiQyH9rz8ppZ5x0H4E8+gT8MFEN+UlRDuRpHHwqMmLCFwPJkXixI87z2A2/w+6
- آخر فهرسة
- منذ 5 ساعات