Catch Kenny Game
The course is part of this learning path
In this course, we're going to create a game for iOS in which you chase a character, and each time you tap him, your score increases. This will challenge you to think about how you would build your own game using your existing knowledge of iOS and then, of course, we're going to code along together to create the game.
This course is designed for anyone who wants to:
- Learn about iOS development and coding
- Move into a career as an iOS developer
- Master Swift skills
To get the most out of this course, you should have some basic knowledge of iOS.
Hi, within this section, you're going to get your second big assignment. So, first one was calculator and the second one is going to be this game. So, let me show you how it looks like. So, we have Kenny running away from us and if we can catch him and if we can tap on him, as you can see score increases. So, we are running against time and if time reaches zero, it displays an alert message for us. It says that time is up, do you want to play again? And in here, we can say replay or okay. And on the bottom, we have the high score.
So, we store this value in a way that if user closes this down and opens one more time, this won't go away, so we store this value in our database. So, we store this value in a way that we only store the highest score that has ever been achieved. And we can tap on the replay to play one more time. And if we can catch the Kenny in a higher score this time, this will be reflected in the highest score. Apparently I'm not very good at this game, so I could only do one and high score is still five as you can see since this is less than one. So far, we have been learning a lot so this will be a great chance to put all of this information into practice. And you have some skill missing in order to complete this app, and let me give you a hint.
You have to come up with a way to find, to create random variables or random numbers in order to make this work. And you may have to come up with a way to make animations or make some views visible and not visible and we have not seen that yet, but you can easily try to figure out how to do this and you can easily find this information on Google, and if you cannot do that, don't worry. This is a very hard practice by the way. This is the hardest assignment that you will ever get during this course. But after that you will see how you can actually turn your training to practice and you can actually see how you can use all of this information in relapse. And again if you cannot do this, don't worry. We're going to be building this app from scratch during this section. So, I suggest you pause the video and try to come up with a way to make this happen.
Atil is an instructor at Bogazici University, where he graduated back in 2010. He is also co-founder of Academy Club, which provides training, and Pera Games, which operates in the mobile gaming industry.