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

x/caviar/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.6.2/src/scenes/Scene.ts";

Constructors

new
Scene(world: World)

Properties

entities: Array<Entity>
resources: Resource[]

Methods

addChild(e: Entity | Entity[]): void
keyDown(e: string): boolean
killChild(e: Entity | Entity[]): void
loadPlugin(name: string, plugin: any): void
setBackground(color: string | RGBA): void
setKeys(_keys: Array<string>): void
setup(): void
tick(): void
update(): void
usePlugin(name: string)