Module: PseudoGame.game.Cap

Class that represents a game's cap

Functions

PseudoGame.game.Cap:new ([style=level_style]) the constructor for a cap
PseudoGame.game.Cap:update () update the caps shape and color

Fields

pseudogame.game.cap.style
pseudogame.game.cap.polygon


Functions

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

Parameters:

Name Type(s) Description Default value
style Optional Style the style to use level_style

Returns:

    Cap
🔗 PseudoGame.game.Cap:update ()
update the caps shape and color

Fields

🔗 pseudogame.game.cap.style
Name Type(s) Description
style Style the style the cap is using
🔗 pseudogame.game.cap.polygon
Name Type(s) Description
polygon Polygon the polygon that represents the visual cap (use this for drawing)
generated by LDoc 1.5.0