Module: PseudoGame.game.Pivot

Class that represents a game's pivot

Functions

PseudoGame.game.Pivot:new ([style=level_style]) the constructor for a pivot
PseudoGame.game.Pivot:update () update the pivots shape and color

Fields

pseudogame.game.pivot.style
pseudogame.game.pivot.polygon_collection


Functions

🔗 PseudoGame.game.Pivot:new ([style=level_style])
the constructor for a pivot

Parameters:

Name Type(s) Description Default value
style Optional Style the style to use (nil will use the default level style) level_style

Returns:

    Pivot
🔗 PseudoGame.game.Pivot:update ()
update the pivots shape and color

Fields

🔗 pseudogame.game.pivot.style
Name Type(s) Description
the Style style the pivot is using
🔗 pseudogame.game.pivot.polygon_collection
Name Type(s) Description
the PolygonCollection polygons representing the visual pivot (use this for drawing)
generated by LDoc 1.5.0