[Updated August 7, 2020] Unless you’re going to code the next Angry Birds and then just retire to a life of leisure, you’re going to be writing Lua and Solar2D code over and over again. And starting from scratch every time is nice if you’re looking for finger exercises, but if you want to speed […]
Create A Simon Game in Solar2D
[Updated July 31, 2020] On the Solar2D forums someone asked about creating a Simon-like game where the computer highlights a color and the user touches the same one, then computer highlights two colors and user does the same, etc. Simon was one of the top electronic games in the 80s. The question on the forum […]
color, game design, sequence, simon, tablesShuffling Your Data
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, […]
cards, coding, corona sdk tutorial, lua, programming, shuffle, tableUsing 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, programmingMoving 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 effectsMake 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