Mole Mash — aka Spartan Mash
Posted by cerrone1231
As I reflect on the apps I create throughout this course, I am thinking of them both as an app developer for this course as well as a teacher. I plan on teaching a little unit of app development in my Intro to Programming course so part of my thinking will be discussing that component.
The Mole Mash app asks the user to click on the mole. When the user does so, a counter is added so he can see their score. I learned how to create a counter by initializing both the misses and hits counter and then adding one when the object was hit or missed respectively. I also learned how to do a countdown timer (by subtracting one). At the end of the timer another screen (the game screen) was opened. I couldn’t really figure out how to time it right. It seems to go too quickly from the gunshot to the next screen. I really wanted to end the game after the user had 10 misses, but that block of code did not work. I tried an if/then/else loop stating if the misses counter = 10, then close screen else add one to the counter (if the spartan was missed only). But, nothing seemed to happen. Nothing closed and the spartan continued to move.
I wanted to add a more personal component on this app so I adapted it for our Homecoming game. I changed the image sprite to a spartan and the background to a football field. The idea behind it was that when you clicked the spartan you actually “tackled” him and the tiger roared. I sent this on to our staff and for those who have Android devices, they were able to view it and enjoy it. I have been researching ways to be able to take my App Inventor source code and adapt it for a Mac device (our school is very Mac oriented) but I could not find a way to do it. There has to be some way as I see the same apps available for both platforms often.
I am starting to have many people in school ask me for apps! I still have a lot to learn before I can conquer their requests, but I look forward to doing so.