Module bump.lua

Bump.lua plugin for STI

Info:

  • Copyright: 2019
  • License: MIT/X11
  • Author: David Serrano (BobbyJones|FrenchFryLord)

Functions

bump_draw (world, tx, ty, sx, sy) Draw bump collisions world.
bump_init (world) Adds each collidable tile to the Bump world.
bump_removeLayer (index, world, tx, ty, sx, sy) Remove layer

Tables

Properties Custom Properties in Tiled are used to tell this plugin what to do.


Functions

bump_draw (world, tx, ty, sx, sy)
Draw bump collisions world.

Parameters:

  • world bump world holding the tiles geometry
  • tx Translate on X
  • ty Translate on Y
  • sx Scale on X
  • sy Scale on Y
bump_init (world)
Adds each collidable tile to the Bump world.

Parameters:

  • world The Bump world to add objects to.

Returns:

    collidables table containing the handles to the objects in the Bump world.
bump_removeLayer (index, world, tx, ty, sx, sy)
Remove layer

Parameters:

  • index to layer to be removed
  • world bump world the holds the tiles
  • tx Translate on X
  • ty Translate on Y
  • sx Scale on X
  • sy Scale on Y

Tables

Properties
Custom Properties in Tiled are used to tell this plugin what to do.

Fields:

  • collidable set to true, can be used on any Layer, Tile, or Object
generated by LDoc 1.4.6 Last updated 2020-04-16 17:17:47