Code Posts

Corona SDK – Convert hex colour to RGB. Alfred v2 workflow.

There’s a popular mac app that I use countless times a day; Alfred. I love this app! In its simplest form, it is a great clipboard manager. It also offers system wide shortcuts and workflows.

The workflows are where you can automate certain tasks very easily. One task that I found annoying was copying a RGB colour from photoshop to use in corona, especially now that corona’s rgb values are 0-1 rather than 0-255. This is where the Alfred workflow comes in.

I found this great workflow that simply converts a hex code into a rgb, for example:



I edited the output format so that it would work with corona:


>0.773, 0.380, 0.294

The above allows you to simply paste the values in one go into a setFillColor(); for example.

You can download the modified Hex2RGB workflow here.

Credit goes to

Read More

Code snippets – Github gist

I thought I’d start saving my most used code snippets on gist. There are often times where I’m starting a new project and I can’t certain functions or config files that I need to get started quickly. Gist is the answer!

justTheDrummer on gist

For example, this is a function to return an absolute angle in lua:

Read More

New trailer for 14px

I recorded the gameplay using reflector for mac, which is a great tool to have!

Read More

14px Gameplay

This is a gameplay video of 14px, my latest game.

This game was a huge project for me, in design, coding and music. It was a lot of fun and I believe I have made a game that will make people want to throw their phones across the room (in a good way).

Read More

Stay Alive featured on Attack of the Show

Possibly the most surreal thing that’s happened to me so far, my game Stay Alive was featured on Attack of the Show in the States! My finger is famous!!

This definitely made all the hard work worth it.

Read More

Stay Alive v2 gameplay from Rob Allison on Vimeo.

Stay Alive v2 gameplay

I spent my spare time over the Christmas break working on the graphics and gameplay for Stay Alive. I actually rebuilt the entire game from scratch in a surprisingly short amount of time. That’s what I love about the Corona SDK. As I already knew exactly what the game did, how it played and how it looked, I could just get right into it and CODE!

Maybe I’ll do a new-new version next year.

Read More