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.5.3/src/entities/mod.ts";

Constructors

new
Entity(x: number, y: number)

Properties

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

Methods

setPosition(
x: number,
y: number,
z?: number,
)