Shuffling data isn’t just something that a card game might need — in my game Match Game Magic I needed to shuffle picture objects between each level. In this article I’ll introduce you to some code that might help in your game. Even though it’s not just card games that can make use of shuffling, […]
Using print() from a Device (kinda)
While a visual debugger would give everyone thrills, Corona SDK doesn’t have that (yet). But we do have the handy-dandy print() statement so we can print out debug strings and figure out what’s wrong with our code. Unfortunately, print() doesn’t work on the device, and so if you run into a problem that doesn’t show […]
Better Buttons in Corona SDK
It’s easy to make a button using Corona SDK, but making a button that acts correctly takes a little more work. With the code in this sample you’ll be making good buttons and simplifying your code at the same time. Right-click the link below to grab a zip file containing the article (full details of […]
Playing with Numbers and Colors
If you’ve done any HTML work you’re probably familiar with setting colors using hexadecimal values, such as #FFFFFF for white, #000000 for black, and #FF30F0 for a weird pinkish-purple color. But in Corona SDK you set colors using those odd base-10 numbers, so that last color would be set using something like:
1 |
blob:setFillColor(255, 48, 249) |
I don’t […]
coding, colors, corona sdk tutorial, lua, programmingMaking Money with Corona SDK
I’m always looking for ways to monetize my knowledge and skills and had an idea today that was sparked by the release of SpriteLoq, a new tool that turns Flash SWF graphics into sprites for Corona SDK. Here’s the idea… If I were a Corona SDK developer looking to make some money I’d start seeking […]
Moving Sunbeams in Corona SDK
In this tutorial you’ll discover how to create a moving sunbeam effect in your Corona SDK project. First, watch the video to see what it looks like: The sample project actually looks better than in the video because I did a little tweaking after recording that. Here’s where you can grab the sample project including […]
corona sdk tutorial, graphics, special effectsMy First Game in the App Store
Eight days after I submitted it for review, my game Match Game Magic was released on the App Store. Woohoo! 🙂 http://matchgamemagic.com Go ahead and download it, it’s free. It’s a memory/match game where you match two tiles and uncover a hidden picture. It’s not rocket science, and it’s not even the game I intended […]
Make A ‘Lives Left’ Number Count Down
Q. I’d like to have a counter on the screen go backwards every time my guy gets killed — a number that shows the lives you have left. How do you do that? A. While there are a lot of ways this could be done, I’m going to show you the fastest and easiest way. […]
corona sdk tutorialSuspend and Resume a Game
Q. When the user presses the Home button on the iPhone how do I save the game for when the user comes back? A. Corona SDK doesn’t support multi-tasking at this time, but when the app exits you could save the state of the game and then when the user launches it again, look and […]
corona sdk tutorial, database, game development