Download #EggSaver from Google Play: https://play.google.com/store/apps/details?id=com.terratechnical.games.eggsaver
Download #EggSaver from Amazon Store: http://www.amazon.com/gp/product/B00URWRUE0
View Code on GitHub: https://github.com/terra819/MobileExperiments/tree/master/EggSaver
Collaborating with Children – App Design
Recently I’ve gotten a small break from things and I wanted to work on something fun. I’ve been dabbling in mobile development with Phonegap, Ionic and even native Android, but I was getting curious about doing something I’ve never attempted before, on any medium; games. I did some research and found a gaming engine (Corona Sdk) with some YouTube tutorials, so I enlisted my children for ideas and we sat around a whiteboard until we came up with this:
My kids wanted to do a game for Easter and I had only watched a couple of YouTube videos on Corona Sdk (listed below) which were examples of games that used gravity so I thought a game of falling eggs with a basket for Easter would be a simple app that I could handle. But my kids wanted to get more involved, they wanted to design the eggs that fall for Easter that can be placed in the game. I agreed and got to work building the app and using plain white eggs until my kids finished making their designs that I would insert later.
By the time I got the game working the kids were getting anxious to get their artwork into the program so they could see it in the game. Their excitement gave me an idea; If they were excited to see their own artwork in a game, then other kids would too! I asked the kids for a couple more days and I promised that when I finished they would be able to design as many eggs as they wanted for the game.
The Concept:
I approached the paint part of the game with the simple fingerpainting code provided by @schroederapps. I included his fingerpaint.lua file in my code and I altered it slightly. I changed the background shape from a simple rectangle to a polygon with coordinates that form a large egg shape. This allowed me to display a canvas for fingerpainting that gave a guide for the egg drawing but allowed for coloring outside the lines.
I then saved the drawings and inserted their filenames (formed from timestamps) into a local array of egg files. The game pulls this array and gets a random filename for each egg dropped, using the same polygon with coordinates for a smaller egg shape for the eggs in the game.
The Result:
My kids normally go through the app store pretty quickly. They download a game and within in 5 minutes (seriously!) they are bored and on to the next. This game has actually held their attention for a few days so far. I know its their baby so they are a little more invested, but I have to admit its even held my attention and its even a bit addictive. Not bad for my first app anyway. Please give it a try and share it with your kids, Happy Easter!
YouTube Tutorials for learning Corona Sdk:
- Corona SDK: Make a game in 8 minutes (Part 1)
- Corona SDK – Flappy Bird Code Walk-Through – Part 1 of 7