Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Cinematic

Source

interface CineSeq

Source

A cinematic sequence. Cinematic has built-in cinematic sequences: - Cinematic.fadeOutSeq(duration) - Cinematic.fadeInSeq(duration) - Cinematic.applyCameraSetupSeq(camerasetup) - Cinematic.snapCameraPosSeq(vec2) - Cinematic.doNothingSeq()

function apply() returns duration

Source

class Cinematic

Source

Create a cinematic by composing cinematic sequences: let cine = new Cinematic( asList( Cinematic.fadeOutSeq(0.5.seconds()), Cinematic.snapCameraPosSeq(ZERO2), Cinematic.fadeInSeq(1..seconds()), () -> begin print("Cinematic!") return 5..seconds() end, Cinematic.fadeOutSeq(0.5.seconds()) ), // This final cinematic seq is always run, even if cinematic is skipped. Use this for cleanup. () -> begin FogEnable(true) SelectUnit(u, true) reurn 0..seconds() end, ) A cinematic can be skipped, which signals the controller to halt processing sequences and play the closing sequence. cine.skip_()

boolean running

Source

function applyCameraSetupSeq(camerasetup setup) returns CineSeq

Source

function doNothingSeq(duration duration) returns CineSeq

Source

function fadeIn(duration duration)

Source

function fadeInSeq(duration duration) returns CineSeq

Source

function fadeOut(duration duration)

Source

function fadeOutSeq(duration duration) returns CineSeq

Source

function skip_()

Source

function snapCameraPosSeq('unknown type' (the type vec2 could not be found, the containing package might not be imported) pos) returns CineSeq

Source