28 August 2015
From the Forum — Issue #87
Welcome to the latest installment of From the Forum. In this series, guest blogger Alex Jackson highlights outstanding threads from the Corona Forum. The goal is to bring attention to the most captivating, interesting, and thought-provoking discussions taking place in our very own backyard.
Please visit the forum to join these conversations or start your own!
1. Corona, like the internet, can be the best series of “tubes”
Getting your modules to all operate with each other and play nice can be the most difficult proposition of any project. Various workarounds, cheats and dirty hacks abound, and ensuring that you aren’t using globals and encountering memory leaks makes these options second tier choices.
Along comes Develephant and his bevy of graits modules. This one introduces his Tubes concept, which allows tables to “communicate” with each other simply and easily. I don’t want to reinvent the wheel, so do yourself a favor and check out the original thread below!
https://forums.coronalabs.com/topic/58561-eventable-a-series-of-tubes-for-your-lua-tables/
2. Some new rules when working with custom fonts
Custom fonts have been a bear for quite a while. Finding options that fit next for your project and confirming the license are just the start of the harrowing journey. Getting to the point where you’re implementing the font means that you have half the battle left over.
Now, things are a little bit easier. In working on Win32/OSX deployment support for Corona, the mad geniuses behind the push were able to streamline the way developers can get their apps and games to recognize the fonts they include. Head down to the original thread to learn more and check out the direct link to the documentation.
https://forums.coronalabs.com/topic/58658-how-do-you-add-custom-fonts-for-desktop-apps/
3. Go where everybody knows your name
I always like learning about different ways to sort Lua tables quickly and efficiently. Slicing and dicing info contained in your Corona app makes a lot of different options possible, regardless of implementation or need. Given the new places we can take our apps and games, I wanted to highlight some methods to sort and display information based on different criteria.
I’ve been saving this thread for just such an occasion. Here, we have several developers discussing how to return a list of names in different permutations, and how they would achieve the desired affect in Corona. Head down to the original thread and learn more about how to handle tables in Lua now!
About Alex
Alex Jackson is an indie developer and the founder of Panc Interactive, specializing in retro-style gaming. He has created several mobile applications, enjoys long walks on the beach, pixel art, and reading the Corona forums. Contact him by email or follow him on Twitter: @pancinteractive. Check out his new game Segreta on iOS, Android, Windows Phone and Amazon devices.
Sorry, the comment form is closed at this time.