KO

← JumPHP 엔진 확장

Effects v0.5.12

jumphp/effects · MIT · 다운로드 0회

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에서 동작

제공하는 기능

  • 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

게임에 추가

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

또는 Composer로:

bin/jumphp composer <game> require jumphp/effects

서비스: JumPHP\Effects\Flash, JumPHP\Effects\Transition
project.yaml 키: effects

예제

$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);

문서 소스 코드 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: samples/ (bin/jumphp extension:add <game> jumphp/effects copies both into your game). Example game: games/effects-demo.

이 확장에 대한 리뷰

GitHub 로그인 이 확장을 평가하려면 GitHub로 로그인하세요.

아직 리뷰가 없습니다. 첫 번째가 되어 보세요.