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

x/caviar/src/entities/mod.ts>TextureSprite

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

Constructors

new
TextureSprite(
_scene: Scene,
x: number,
y: number,
texture: PixelTexture,
)

Properties

data: Rectangle[]
height: number
palette: string[]
pixelHeight: number
pixelWidth: number
texture: PixelTexture
width: number

Methods

setX(x: number)
setY(y: number)