In this Xamarin course we will develop a simple Memory Puzzle Game using Xamarin and C# for Android environment.
Throughout the course, we will explore how to use the Xamarin Android axml editor to build our basic interface elements. We will also look into the use of hard coded elements that are developed dynamically.
We will then move on to building the logic of our game and how it would appear on the interface. Next thing will be the interactions that user can make with the game.
This course is well tailored to anyone who wants to start developing with Xamarin and C#. If you have some experience with programming in the past, this should be quite simple to follow. If this is your first time coding, you might have to review some sections more than once.
Throughout the course, I will give you my assets as well as a copy of my project at each step of the way and I am also available if you had any questions or issues. This will help you in case you fell behind or wanted to compare your project with mine.
By the end of the course, you should be able to port various concepts and frameworks from Android SDK into Xamarin and how to use the C# language to develop basic Android applications.
I hope you enjoy it and see you at finish line.
In this lesson, we will review the entire app real quick to get a better understanding of what it is we are developing and what the different requirements of it. By the end of this lesson you should understand the need for the following:
a) image assets
b) the grid making system
c) grid randomizing system
d) touch listener detection
e) image view comparison system
In this lesson, we will make the interface elements of our game in axml. We will also add the image assets accompanying this tutorial to our project.
In this lesson, we learn how to read the dimensions of our game interface and apply that to the grid layout that we make dynamically.
In this lesson, we will make the number of the blocks that we need out of Image Views and add them all into an Array. We will also add the different locations on our grid into another Coordinates Array that will be used through the randomization process.
In this lesson, we will implement the Touchlistener and make sure each time a block from our series is touch a respond is returned.
In this lesson, we will find out if this is the first or the second time in a pair that the blocks are touched upon. If it is the 2nd time, we will run a comparison function to compare the two blocks and decide whether they are a match or not.
In this lesson we continue on running a comparison between two blocks and decide whether they are a match 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.