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

x/caviar/web/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.9/web/mod.ts";

Constructors

new
Scene(world: World)

Properties

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
loadPlugin(name: string, plugin: any): 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
usePlugin(name: string)