Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.1.8/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