Skip to main content
Module

x/caviar/mod.ts>Scene

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
class Scene
import { Scene } from "https://deno.land/x/caviar@2.6.7/mod.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
onClick(x: number, y: number): void
setBackground(color: string | RGBA): void
setKeys(_keys: Array<string>): void
setup(): void
tick(): void
update(): void
usePlugin(name: string)