Skip to main content
Module

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

Constructors

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

Properties

currentScene: Scene
FPS: number
readonly
mouseX: number
readonly
mouseY: number
params: WorldOptions
plugins: any
renderer: WebGLRenderer2D
scenes: Array<Scene>

Methods

_draw(): void
_fps(): () => void
_mouseDown(e: any): void
keyDown(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