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

x/caviar/web/src/entities/mod.ts>Atlas

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

Constructors

new
Atlas(atlasUrl: string, type?: string)

Properties

atlas: PhaserAtlas | PixiAtlas | GodotAtlas
bitmap: ImageBitmap
image: HTMLImageElement
readonly
imgUrl: string
preloaded: boolean

Methods

getFrame(key: string): Frame
load(): Promise<Atlas>