TR

← JumPHP motor eklentileri

Effects v0.5.13

jumphp/effects · MIT · 0 indirme

Fades, wipes, an iris and a dissolve to change scene, a flash, a vignette and easing curves: all drawn with translucent rectangles.

JumPHP ^0.5 ile çalışır

Neler getirir

  • Transitions: fade, wipe (4 sides), iris on a point, blinds, dissolve; cover, change the scene under it, reveal
  • Flash: light the screen in a colour, it fades
  • Vignette: darker edges
  • Ease: 10 curves (quad, cubic, back, bounce, elastic) and lerp
  • Pure PHP, 32-bit safe: the same in the browser

Oyununuza ekleyin

bin/jumphp extension:add <game> jumphp/effects

Ya da Composer ile:

bin/jumphp composer <game> require jumphp/effects

Servisler: JumPHP\Effects\Flash, JumPHP\Effects\Transition
project.yaml anahtarları: effects

Örnek

$this->transition->cover('iris', 0.6, '#000000', fn () => $this->scenes()->switchTo(PlayScene::class, [], false));// the new scene's enter(): $this->transition->reveal('iris', 0.6);

Dokümantasyon Kaynak kodu Packagist

Effects

Screen effects for JumPHP games (jumphp/effects): transitions (fade, wipes, iris, blinds, dissolve), a flash, a vignette, easing curves. Documentation: doc/index.md; samples: doc/samples/ (bin/jumphp extension:add <game> jumphp/effects copies both into your game). Example game: games/effects-demo.

Bu uzantı hakkındaki yorumlar

GitHub ile giriş Bu uzantıyı puanlamak için GitHub ile giriş yapın.

Henüz yorum yok: ilk siz olun.