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

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

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

Constructors

new
Entity(x: number, y: number)

Properties

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

Methods

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