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

x/caviar/src/entities/sprites/Animation.ts>Animation

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

Constructors

new
Animation(
_scene: Scene,
x: number,
y: number,
atlas: Atlas,
frames: Array<string>,
)

Properties

atlas: Atlas
currentFrame: number
frames: Array<string>