Skip to main content
Module

x/caviar/web/mod.ts>Scene

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class Scene
import { Scene } from "https://deno.land/x/caviar@2.4.0/web/mod.ts";

Constructors

new
Scene(world: World)

Properties

private
_resources: Promise<Resource>[]
entities: Array<Entity>
resources: Resource[]

Methods

_mouseDown(e: any)
_mouseMotion(e: any)
addChild(e: Entity | Array<Entity>): void
keyDown(e: string): boolean
killChild(e: Entity): void
mouseDown(_e: any): void
mouseMotion(_e: any): void
setBackground(color: string | RGBA): void
setKeys(_keys: Array<string>): void
setup(): void
tick(): void
update(): void