jumphp / shorts
Vertical videos (TikTok, Shorts, Reels) made from a JumPHP scene: melodies played by collisions, the sound mixed offline, bin/jumphp video:make renders the frames and the MP4
Package info
git.jumphp.net/jumphp/jumphp-shorts.git
Type:jumphp-extension
pkg:composer/jumphp/shorts
Requires
- php: >=8.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.5.85
- v0.5.84
- v0.5.83
- v0.5.82
- v0.5.81
- v0.5.80
- v0.5.79
- v0.5.78
- v0.5.77
- v0.5.76
- v0.5.75
- v0.5.74
- v0.5.73
- v0.5.72
- v0.5.71
- v0.5.70
- v0.5.69
- v0.5.68
- v0.5.67
- v0.5.66
- v0.5.65
- v0.5.64
- v0.5.63
- v0.5.62
- v0.5.61
- v0.5.60
- v0.5.21
- v0.5.20
- v0.5.19
- v0.5.18
- v0.5.17
- v0.5.16
- v0.5.15
- v0.5.14
- v0.5.13
- v0.5.12
- v0.5.11
- v0.5.10
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
This package is auto-updated.
Last update: 2026-11-19 14:45:58 UTC
README
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()inenter(),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.