|

Tag: lua

Tutorial: Extending Libraries Without Native Code

Sometimes, in development, we wish that there was “one extra little thing” in a particular library, or that a function handled a use case specific to our needs. In today’s tutorial, using a little Lua “magic,” we’ll learn how to add custom functions to existing Corona libraries and even extend the functionality of existing APIs. Read further to learn how.

READ MORE

Tutorial: Goodbye Globals!

In Lua, global variables are risky. We’ve been stressing the “avoid globals” stance for a long time, and today’s tutorial shows you how. In addition, we illustrate the dangers and pitfalls of using global variables without a thorough knowledge of how Lua handles them.

READ MORE