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 2
Shuffling Our Game Tiles within Our Game Board
Learn how to shuffle each of our Game Tiles within your Game Board, using randomly generated positions. - Use the Random C# class to generate a random number to position each Game Tile - Learn to use the CoreGraphics framework and CGPoint class - Learn to use the RemoveAt method to remove an item from an array