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

x/caviar/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.4.11/src/entities/Entity.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,
)