Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

Creates a DuckEngine Tile

description

The Tile Class. Stores information about a Tile on a Tileset

since

2.0.0

Hierarchy

  • Tile

Index

Constructors

Properties

Constructors

constructor

  • new Tile(x: number, y: number, w: number, h: number): Tile
  • description

    Creates a Tile instance

    Parameters

    • x: number

      X position of the Tile

    • y: number

      Y position of the Tile

    • w: number

      Width of the Tile

    • h: number

      Height of the Tile

    Returns Tile

Properties

h

h: number
memberof

Tile

description

Height of the tile

since

2.0.0

Readonly id

id: string
memberof

Tile

description

Unique identifier for the Tile

since

2.0.0

position

position: Vector2
memberof

Tile

description

Position of the tile

since

2.0.0

w

w: number
memberof

Tile

description

Width of the tile

since

2.0.0

Generated using TypeDoc