Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/caviar/src/entities/sprites/mod.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.1.7/src/entities/sprites/mod.ts";

Constructors

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

Properties

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