Namespace in reactor_fight_camera.js

D

34 public functions in 6 groups · show internal (_) functions

The cinematic battle camera.

Quick Reference

Getting Information 1

compute() What the current shot wants this frame.

Checks (True / False) 1

isBusy() The battle waits while this is true.

Actions 6

setLevel() Change the level for this save (an options screen); "default" goes back to System's.
reset() Reset.
play() Start a shot, from whatever is on screen.
take() Take the view: remember the 2D one exactly, and ask the tactical view to leave it alone.
release() Ease the view back over frames; with hold the battle waits for it.
finish() The view is the map's again, exactly as it was.

Events, Commands & Input 1

handle() One event from the feed.

Updating & Drawing 2

update() Once a frame, at the scene's own rate (never slowed).
drawBars() The letterbox: two bars on the map scene, over the map and under the windows.

Other 23

active() Active.
shot() Shot.
timeScale() How fast the battle runs: 1, or less in slow motion.
presentation() What a HUD fades by and how far the letterbox is in: the same object every call.
keepsRegion() The tactical view's see-through ground is kept: on the way down from it, on the way back, in a shot that stay…
live() A Tactical battle is being fought on this map.
eye() Where the camera is now on a 3D map, or null.
slow() Slow the battle to scale for frames (the setting allowing).
suspendView() Suspend view.
abort() Stop now: a battle that ended, a scene that is leaving.
skip() The player has seen enough: the view goes back and the rest of this action is not filmed.
queue() A shot to start once the frame rate is steady and no message has come up; the battle waits for it.
ideal3() The pose the camera should be at this frame on a 3D map, before the spring.
pose3() The pose to show on a 3D map, given the pose the map camera placed this frame.
pose2() The pose to show on a flat map: what the saved view was looking at is the base.
base2() Base2.
apply2D() Scroll and zoom the flat map to this frame's pose.
skipPressed() Skip pressed.
ride() The round of a long shot is in the air: the camera goes with it.
sequenceStart() An Action Sequence starts playing on the map (from the sequence player): { unitId, targetIds, cameraSteps, im…
sequenceCamera() A camera step of an Action Sequence playing on the map.
cutSubjects() The characters the cutaway opens walls and roofs for during a shot; null when the view is the map's.
apply3D() Apply3 d.

Getting Information

compute

static source
D.compute()

What the current shot wants this frame.

Checks (True / False)

isBusy

static source
D.isBusy()

The battle waits while this is true.

Actions

setLevel

static source
D.setLevel(level)

Change the level for this save (an options screen); "default" goes back to System's.

reset

static source
D.reset()

Reset.

play

static source
D.play(shot)

Start a shot, from whatever is on screen.

take

static source
D.take(shot)

Take the view: remember the 2D one exactly, and ask the tactical view to leave it alone.

release

static source
D.release(frames, hold)

Ease the view back over frames; with hold the battle waits for it.

finish

static source
D.finish()

The view is the map's again, exactly as it was.

Events, Commands & Input

handle

static source
D.handle(name, payload)

One event from the feed.

Updating & Drawing

update

static source
D.update()

Once a frame, at the scene's own rate (never slowed).

drawBars

static source
D.drawBars(scene)

The letterbox: two bars on the map scene, over the map and under the windows.

Other

active

static source
D.active()

Active.

shot

static source
D.shot()

Shot.

timeScale

static source
D.timeScale()

How fast the battle runs: 1, or less in slow motion.

Details

How fast the battle runs: 1, or less in slow motion. Eased, never a step.

presentation

static source
D.presentation()

What a HUD fades by and how far the letterbox is in: the same object every call.

keepsRegion

static source
D.keepsRegion()

The tactical view's see-through ground is kept: on the way down from it, on the way back, in a shot that stays in it.

live

static source
D.live()

A Tactical battle is being fought on this map.

eye

static source
D.eye()

Where the camera is now on a 3D map, or null.

slow

static source
D.slow(scale, frames)

Slow the battle to scale for frames (the setting allowing).

suspendView

static source
D.suspendView()

Suspend view.

abort

static source
D.abort()

Stop now: a battle that ended, a scene that is leaving.

skip

static source
D.skip()

The player has seen enough: the view goes back and the rest of this action is not filmed.

queue

static source
D.queue(make, options)

A shot to start once the frame rate is steady and no message has come up; the battle waits for it.

ideal3

static source
D.ideal3(base)

The pose the camera should be at this frame on a 3D map, before the spring.

pose3

static source
D.pose3(base)

The pose to show on a 3D map, given the pose the map camera placed this frame.

pose2

static source
D.pose2()

The pose to show on a flat map: what the saved view was looking at is the base.

base2

static source
D.base2()

Base2.

apply2D

static source
D.apply2D()

Scroll and zoom the flat map to this frame's pose.

skipPressed

static source
D.skipPressed()

Skip pressed.

ride

static source
D.ride()

The round of a long shot is in the air: the camera goes with it.

sequenceStart

static source
D.sequenceStart(info)

An Action Sequence starts playing on the map (from the sequence player): { unitId, targetIds, cameraSteps, impactAt, length }.

Details

An Action Sequence starts playing on the map (from the sequence player): { unitId, targetIds, cameraSteps, impactAt, length }. One with camera steps is filmed by those, not by the automatic shots.

sequenceCamera

static source
D.sequenceCamera(step, context)

A camera step of an Action Sequence playing on the map.

Details

A camera step of an Action Sequence playing on the map. context is { user, target, targets } (map characters). Returns false when the camera stays where it is (level Off, or no battle).

cutSubjects

static source
D.cutSubjects()

The characters the cutaway opens walls and roofs for during a shot; null when the view is the map's.

apply3D

static source
D.apply3D(spriteset)

Apply3 d.