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 3
Handling Touch Events within the Game Board
Learn how to work with the UITouch class to determine if a touch has been activated within the UIView. - Use the Contains method to determine if the touched view is located within the gameTileImagesArray - Learn to get the image position within the View and the index of the image within our array - Learn to handle Game Tiles images flipping when tapped within the GameBoard UIView