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

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

Constructors

new
Scene(world: World)

Properties

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

Methods

_mouseDown(e: MouseDownEvent)
_mouseMotion(e: MouseMotionEvent)
addChild(e: Entity)
keyDown(_e: KeyEvent): void
killChild(e: Entity): void
mouseDown(_e: MouseDownEvent): void
mouseMotion(_e: MouseMotionEvent): void
setKeys(_keys: Array<string>): void
setup(): void
tick(): void
update(): void