Skip to main content
Deno 2 is finally 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@2.0.0/src/World.ts";

Constructors

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

Properties

currentScene: Scene
FPS: number
params: WorldOptions
plugins: any
renderer: Renderer
scenes: Array<Scene>

Methods

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