Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/web/src/scenes/Scene.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.3.5/web/src/scenes/Scene.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