A .lua file you can include in your other .lua files to gain access to convenient functions.
It might not exactly be an API, however the name is cool and you can't deny.
Made by KokiczDrzewny
To setup Pendulum API, you can either use KnShim's knInclude() function to quickly include it in a file, or you can copy the functions you want to use from the pendulum.lua file and paste it in the designated file.
The full function list with parameters and explanations has been completely moved to the info.txt file in the downloaded zip.
Functions are mostly just shorthands for other functions added for convenience and the sake of not having to remember long mgGet() or mgCommand() keys, for example: pauseGame(true) instead of mgSet("game.paused", "1").
Updated: April 22, 2025 (Latest)
v1.2.3 April 22, 2025
Added isScreenTouched(), rgb(), getModeName(), isGameXml()
Replaced getLevelNumber() with getLevel()
Fixed puSlot()
Setup functions now set the origo before everything else
v1.2.2 March 31, 2025
Variables being a part of a group are now required to be passed as strings of their names
v1.2.1 March 28, 2025
Added validGroup(), chooseRandom(), pushStack() and popStack()
Changed (hopefully all) variables used in functions to local variables
v1.2.0 March 25, 2025
Added defineGroup(), deleteGroup(), addGroup(), removeGroup() and executeGroup()
Fixed playSound() not playing a sound due to the volume being nil
Rearranged the functions in the files to be grouped with other similar functions
v1.1.0 March 22, 2025
Added getWord(), sinTime(), cosTime() and startMovie()
Updated setupText() in info.txt (font name should not include the .fnt extension)
v1.0.1 March 19, 2025
Fixed getBestStreak()
Renamed hitSomething() to playerWasHit()
Changed some global variables in functions to local variables
Fixed playSound() to not create sounds each time the sound is played
Special thanks to yorshex for programming advice :3
v1.0.0 March 16, 2025
Initial Release