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
Go to Latest
class Entity
Abstract
import { Entity } from "https://deno.land/x/caviar@2.6.2/web/src/entities/Entity.ts";

Constructors

new
Entity(x: number, y: number)

Properties

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

Methods

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