Creating a Time Counter (and Practical Usage)

In many apps (especially games), counting time is a very common task. With Corona’s built-in timers, it’s easy to start an infinite timer and just count how many iterations have passed through the listener function that you passed through it; however, there is an easier, potentially more efficient way to count time–and you won’t even have to touch Corona’s timer functions.

Instead, you’ll simply rely on your operating system’s time, which is a process that is always running no matter what. So although I haven’t ran any tests or benchmarks, to me, it makes sense to take advantage of your OS time wherever you can before consulting Corona’s timer library.

Read more »


Retina Display Setup in 3 Easy Steps

If you’re looking for all the technicalities behind dynamic content scaling and how it all works in conjunction with Corona, you might want to consult the official documentation instead.

However, if you want a quick guide that’ll help you get it working in your project ASAP, then continue reading.

I was almost fully finished with Dungeon Tap[^1] when I purchased a new 4th generation iPod touch. Before that, I never saw the retina display, but I heard plenty of good things about it.

After seeing the amazing level of quality in the new display, I was anxious to include high resolution graphics within Dungeon Tap, especially when I saw how blurry my low resolution graphics were on the iTouch 4.

Read more »


Easy Screen Management in Corona

When I first began developing with the Corona SDK, screen (aka “scene”) management and code organization was probably most difficult thing to wrap my head around and get used to.

At first glance, and at second glance (after looking at the included Corona examples), I thought: Is an entire project really supposed to fit into this ONE main.lua text file?!

I did look up external modules in the API documentation, but I didn’t really get it. Because I was still on my 30-day trial and anxious to get started, I stopped worrying about modules and actually created my first game all within ONE main.lua file!

Read more »


Fix iOS4+ Multi-Tasking Crashes

Ever since I started testing my builds on my iPod Touch 4th Generation[^1], I’ve had a simple–but annoying–problem:

Whenever I launch the app, it “tries” to resume from the last place the app left off (due to multi-tasking in iOS4), but because Corona doesn’t support multi-tasking events right now[^2], the app immediately crashes out. The next time I start the app, it starts from the beginning and everything is fine.

Read more »


Facebook Friends Leaderboard

This article will walk you through creating a Facebook Friends Leaderboard (FFL) for your iOS game, much like you see in popular games such as Doodle Jump and Bejeweled Blitz (as well as some Beebe Games titles[^1]).

In short, it’s a high score board that shows where you rank among your Facebook friends who are also playing the game. It’s a great tool for increasing the competitiveness of your game, which in turn increases it’s addictiveness.

You can also take what you learn from this tutorial and apply it to many other things (item exchanges, in-game mailboxes, etc). The possibilities really are endless.

Read more »


|