In this course, we will develop a Sliding Puzzle Game using C# and Xamarin. Throughout the videos, I will try to explain as many C# and Java differences as possible to make sure your transition to C# is smooth and easy. This game should be a fun development that will help you understand a wide range of topics including but not limited to:
1- Using Xamarin Designer to add elements to your Android app
2- Using various C# constructs to add your game logic
3- How to dynamically add game outlets and manipulate them
4 - How to handle touch events
5 - How to sub-class existing interface elements
The course is a perfect start for beginner developers or Java developers who want to jumpstart with Xamarin. By the end of the course, you should have an intermediate understanding of various concepts in C# and be able to develop basic Android app games in Xamarin.
Throughout your development, if you had any issues or concerns, you can always get in touch with me.
In this first video, we will cover the fundamentals of the app. We will discuss what we are going to develop and also what are the different sections of it. We will also discuss the IDE that we use and the simulator. By the end of this section, you should have an understanding of the following:
a) the assets of this game
b) the need for a GridLayout
c) the need for a block making function
d) the randomization process
e) Touch detection process and block movement handling
In this first coding lessons, we will simply add a new GridLayout that will work as our game’s backdrop.
In the next lesson, we will make the blocks of images from the image assets. We will develop them using ImageViews and a set a of two loops. We will also need to memorize the coordinates that we are using.
In this lesson, we will iterate through the blocks of images and randomly place them on our grid.
In this lesson, we will add a new touch function to understand the landed touches. Once a touch is detected we will decide whether the block that has been touched can move to a side or not.
I am currently Senior Instructor at Cinard. Before taking up this job and moving to beautiful Vancouver, for over a decade I was senior lecturer of apps / games programming in various colleges and universities.
I work primarily in native iOS and Android apps and Video games in Unity3D.
Cinard is a Digital Media Art & Technology Institute.