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

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

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

Constructors

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

Properties

atlas: Atlas
frame: Frame
image: HTMLImage

Methods

collides(x: number, y: number): boolean