Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/caviar/src/World.ts>World

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

Constructors

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

Properties

currentScene: Scene
FPS: number
params: WorldOptions
plugins: { [key: string]: Plugin; } | undefined
renderer: Renderer
scenes: Array<Scene>

Methods

private
_draw()
draw(): void
keyDown(e: KeyEvent): void
loadPlugin(name: string, plugin: Plugin): void
setFPS(fps: number): void
setScene(scene: number | string): void
setup(): void
usePlugin(name: string): Plugin | boolean