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

x/caviar/web/mod.ts>World

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class World
import { World } from "https://deno.land/x/caviar@2.4.11/web/mod.ts";

Constructors

new
World(params: WorldOptions, scenes: Array<Scene>)

Properties

canvas: HTMLCanvasElement
currentScene: Scene
eventManager: EventManager
FPS: number
keyDown: (e: string) => boolean
keyManager: KeyManager
params: WorldOptions
plugins: any
renderer: GPURenderer
scenes: Array<Scene>

Methods

_draw(): void
_mouseDown(e: any): void
_mouseMotion(e: any): void
loadPlugin(name: string, plugin: any): void
setFPS(fps: number): void
setScene(scene: number | string): void
setup(): void
start(): Promise<void>
usePlugin(name: string): Plugin