One of the basic principles of programming is understanding when and where your variables and functions can be accessed. This concept is known as “scope,” and in this tutorial we’ll discuss how scope is regarded in Lua.
Last Monday we looked at creating library extensions, loading and saving data using JSON to persist states between app uses. Today we cracked open the can of joy that is the Box2D Physics Engine. We created draggable rag dolls, used physics bodies, touch joints, and pivot joints. Download the code from today’s discussion.
Last Monday we showed how to short circuit the amount of work being performed between frames to improve the performance of touch based games. We also looked at creating radial dial timers using image masks. Today we looked at creating extending libraries, loading and saving JSON data, and persisting state across app sessions.
Last week on Corona Geek Hangout 143, we hung out with CBEffects particle effects library author Caleb Place. Caleb shared how he got started with programming at the age of 12 years old and how he taught himself the algebra needed to create particle effects. His story is really inspiring and proves that anyone can create amazing things regardless of age or experience. Here are clips from Hangout.