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

x/caviar/web/src/entities/sprites/AtlasSprite.ts>AtlasSprite

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

Constructors

new
AtlasSprite(
atlas: Atlas,
x: number,
y: number,
frame: string,
)

Properties

atlas: Atlas
bitmap: ImageBitmap
frame: Frame
image: HTMLImageElement