Book Image

Write a Native iOS Game Using Xamarin and C# [Video]

By : Steven F. Daniel
Book Image

Write a Native iOS Game Using Xamarin and C# [Video]

By: Steven F. Daniel

Overview of this book

<p><span id="description" class="sugar_field">Xamarin is the most powerful cross-platform mobile development framework for creating stunning cross-platform applications on the iOS and Android mobile platforms. C# is a simple, modern, general-purpose, Object-Oriented Programming language developed by Microsoft within its .NET initiative. </span></p> <p><span id="description" class="sugar_field">This video course starts by walking you through an iOS memory-matching game and how to build this using Visual Studio for Mac. Next, you will add game asset images and all the game interface elements. You will then learn how to build the user interface for your iOS Memory Matching game. Here, you will create and add each of the game elements that will make up the visual representation of your game. </span></p> <p><span id="description" class="sugar_field">Towards the end of the course, you will implement your game logic to add your game blocks to the view container, and then randomize and shuffle each game block. You will also learn how to implement touch logic to determine when a tile has been tapped on, and then compare the tile with a secondary tile that is tapped. You will then learn how to implement the timer, score, and button actions.</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">A project-based approach that will solve all your needs when it comes to creating an amazing memory-matching iOS game using Xamarin and C#</span></span></p>
Table of Contents (3 chapters)
Chapter 3
Implementing Our Game Logic
Content Locked
Section 4
Comparing Our Game Tiles for a Match
Learn how to perform a comparison to determine if both our game tiles match. - Learn to use the Math.Abs class to get the index of the chosen images within the GameBoard UIView - Learn to use the RemoveFromSuperview method of the UIView class - Learn to load and assign an image to a UIImageView using the FromFile method of the UIImage class