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

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

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

Constructors

new
Entity(x: number, y: number)

Properties

height: number
id: string
width: number
x: number
y: number
z: number | undefined

Methods

setPosition(
x: number,
y: number,
z?: number,
)
setX(pos: number)
setY(pos: number)
setZ(pos: number)