JumPHP extension: shorts (read-only split of jumphp/jumPhp extensions/shorts)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-09 04:51:02 +01:00
doc shorts: Voice, Sprites, Quality; Recorder makes live voices in the background at half rate; Mixer and physics World synced with the game's copies 2026-11-09 04:51:02 +01:00
src shorts: Voice, Sprites, Quality; Recorder makes live voices in the background at half rate; Mixer and physics World synced with the game's copies 2026-11-09 04:51:02 +01:00
composer.json gh for every forge (tools/bin/gh + tools/forge.php: GitHub -> real gh, git.jumphp.net -> forge API), JumPHP's addresses moved to git.jumphp.net, old projects' remotes follow, extension splits on the same forge 2026-11-06 21:36:17 +01:00
LICENSE Extensions on Packagist: each split to its own repository on every tag (extensions-split workflow, tools/extensions-publish.sh, dry run by default), composer.json valid without jumphp/engine, docs 2026-11-04 10:41:59 +01:00
README.md Shorts video maker: extensions physics (balls in rotating / opening rings, seeded) and shorts (notes on collisions, MIDI, offline mix), bin/jumphp video:make -> vertical 1080x1920 60 FPS MP4 + cover, shorts-demo with three templates 2026-11-04 05:31:35 +01:00

jumphp/shorts

Vertical videos (TikTok, YouTube Shorts, Reels) made from a JumPHP scene: each collision plays the next note of a melody, the scene is rendered headless frame by frame at 60 FPS, the sound mixed offline from the notes it played, and bin/jumphp video:make <game> writes the MP4 (H.264 + AAC, 1080x1920) and a cover. docs/video-maker.md.

  • Recorder (a service): reset() in enter(), note($time, $freq): heard at once, kept for the video's sound.
  • Melody: Melody::fromString('C4 E4 G4 C5'), Melody::fromMidi('assets/music/tune.mid'), next().
  • Mixer: the offline mix (bin/jumphp video:make calls it).
  • Draw: ring() (with a gap), arc(), trail().

project.yaml video: {scene: App\Scene\ShortScene, params: {template: rings}, seconds: 30, scale: 4, title: '...'}. Physics: jumphp/physics. Example: games/shorts-demo.