Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

steppedPlacefunction

The place after seconds of play. rate is story seconds in one real second. With watch, the flight underway takes WATCH_FLIGHT_S real seconds, whatever rate is.

Import it

import { steppedPlace } from "@johnmorrisdotca/uchusen-rockets";

Definition

function steppedPlace(steps: readonly PlayStep[], at: number, seconds: number, rate: number, watch: boolean): number

Parameters

NameTypeDescription
stepsreadonly PlayStep[]

The ship's build order.

atnumber

How far through the build, from 0 to 1.

secondsnumber

Real seconds just elapsed.

ratenumber

Story seconds in one real second.

watchboolean

Whether one flight should take WATCH_FLIGHT_S real seconds.

Returns

number

The place, from 0 to 1.

Examples

import { steppedPlace } from "@johnmorrisdotca/uchusen-rockets";

const steps = [{ slot: "keel", start: 0, days: 10 }];
console.log(steppedPlace(steps, 0, 30, 1, true));
1

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.