Skip to content

threeplay

threeplay(opts?): Engine

Defined in: packages/threeplay/src/index.ts:27

Creates a game.

import threeplay from "threeplay";
threeplay({ background: "#87ceeb" });
add([box(1, 1, 1), pos(0, 0.5, 0), color("tomato")]);

ThreeplayInit = {}

Engine