We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pancake.addObject(object_data)
Creates and saves an object with given attributes with other [objects](https://github.com/pancake-library/pancake-wiki/wiki/Objects).
object_data ← Table containing all attributes that the object should have
object_data
object ← Pancake object
object
player = pancake.addObject({name = "Bob", x = 0, y = 0, width = 10, height = 10, colliding = true, image = "bob})
Creates an object with attribute name set to "Bob", x to 0, etc.
Main articles:
Home
Getting Started
Tutorials:
Topics:
Settings
Pancake Attributes
Objects
Layers
Animations
Functions:
pancake.addObject()
pancake.getStat()
pancake.init()