Module: PseudoGame.game.Background

Class representing a game's background

Functions

PseudoGame.game.Background:new ([style=level_style]) the constructor for a game's background
PseudoGame.game.Background:update () update the backgrounds color, position and shape

Fields

pseudogame.game.background.style
pseudogame.game.background.polygon_collection


Functions

🔗 PseudoGame.game.Background:new ([style=level_style])
the constructor for a game's background

Parameters:

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

Returns:

    Background
🔗 PseudoGame.game.Background:update ()
update the backgrounds color, position and shape

Fields

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