API Docs for: 1.13.1
Show:

game.TilingSprite Class

Constructor

game.TilingSprite

(
  • texture
  • width
  • height
  • [properties]
)

Parameters:

  • texture String | game.Texture

    Texture to be repeated

  • width Number

    Sprite width

  • height Number

    Sprite height

  • [properties] Object optional

    Properties to be merged into this sprite

Item Index

Methods

Properties

Methods

addTo

(
  • container
)

Add to container.

Parameters:

remove

()

Remove from it's parent.

update

()

Update tile position with speed.

Properties

speed

game.Point

Texture scroll speed