UNPKG

duckengine

Version:
32 lines (31 loc) 1.02 kB
import Game from '../game'; import Scene from '../scene'; import GameObject from './gameObject'; /** * @class RoundRect * @classdesc Creates a DuckEngine GameObject * @description The RoundRect Class. Represents a smooth cornered rect * @since 1.0.0-beta */ export default class RoundRect extends GameObject<'color'> { /** * @constructor RoundRect * @param {number} x X position * @param {number} y Y position * @param {number} w Width of RoundRect * @param {number} h Height of RoundRect * @param {number} r Radius of RoundRect * @param {string} fillColor Fill Color of RoundRect * @param {Game} game Game instance * @param {Scene} scene Scene instance * @since 1.0.0-beta */ constructor(x: number, y: number, w: number, h: number, r: number, fillColor: string, game: Game, scene: Scene); /** * @description Draws the roundrect. * * DO NOT CALL MANUALLY, CALLED IN GAME LOOP USING SCENE.displayList * */ _draw(): void; }