Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/caviar/src/entities/containers/mod.ts>Button

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

Constructors

new
Button(scene: Scene, child: Sprite | Image | Rectangle)

Properties

child: Sprite | Image | Rectangle
scene: Scene

Methods

setX(x: number)
setY(y: number)