Get Updates By E-mail 

c++

XNATouch: Microsoft XNA Games Running On The iOS Platform

  •  
  •  
  •  
  •  
  •  

Microsoft’s XNA has persevered and become popular with hobbyist game developers on the Windows and Xbox 360 platforms.   While I haven’t really fooled around with it much, I’ve always felt it would be nice to be able to develop XNA games that ran on the iPhone. A project known as XNATouch aims to make this possible.

Apple has spoken out against cross-platform development, but it appears that the MonoTouch project bringing C# to iOS development has persevered, and XNA Touch has been created for MonoTouch developers.  This has brought the ability to program 2D games using C# and XNA to the iPhone with 3D apparently in the works.  There is also a similar project for Android, so theoretically games would run on the iPhone, Android (through another open source project), and Microsoft platforms including the upcoming Windows Phone 7 platform.

You can find the project here: XNATouch at Codeplex

The project is still in active development, and if you’re a hardcore XNA fan you will want to check it out.

Thanks for reading, please share this using the buttons below!


  •  
  •  
  •  
  •  
  •  

Game Programming Tutorial – Beginners Action Game

  •  
  •  
  •  
  •  
  •  

Welcome to my game programming tutorial on how to create a beginners action game for the iOS. This is a step by step tutorial for creating an iPhone action game. The principles taught also apply to the iPad.

You can see the result of a game running the code in the video below:

The graphics are a bit different with the tutorial (as some of those in the video are being used in an actual project) but that is the result of running the actual code within the tutorial.

Specificially the tutorial features:

  • Loading/Placing Images
  • Animation
  • Touch Events
  • Text
  • Sound Effects
  • Background Music
  • Buttons
  • Resetting The Game

Pre-requisites For This Game Programming Tutorial

Now before we start there are a few pre-requisites. You should have a basic understanding of Objective-C and will need a Mac with the iPhone SDK installed. The game was created using iPhone SDK 4.0, and the Sparrow Framework. Also note that I created this to be as easy to follow as possible so I used a minimum number of classes/methods to make it as easy as possible for a beginner to follow – I’ve even exclusively used autorelease objects  so you don’t need to worry about memory management (one of the facets of Objective-C many beginners have trouble with).

Why Am I Using The Sparrow Framework In This Game Programming Tutorial?

In case you’re wondering why I chose to go the route of using the Sparrow Framework it’s because I believe it is the easiest iPhone game development framework available for free for a beginner to start with, and it has already been used in a number of games in the app store.

Please share this tutorial by tweeting it or sharing using one of the buttons at the bottom.

You can navigate through the tutorial by using the page numbers at the bottom of each page.

If you’d like to jump right in you can download a project with all the resources loaded in here.

Getting The Code

You can download the code using the download links at the end of each page, or you can use the Github project found here:
https://github.com/maniacdev/iOS-Balloon-Game-Tutorial

Otherwise if you’d like to go the route of installing Sparrow, and setting everything up you can visit the Sparrow Framework getting started page here which explains the process of setting up an Xcode project that utilizes the Sparrow Framework. You can get just the game assets (graphics/sound) here.

The tutorial is definitely not perfect, and there are probably some spelling/grammar mistakes, but it is the most extensive single tutorial I’ve seen around and might never be released if I tried to perfect it 🙂

The first thing we’re going to do is start the game scene by displaying in a background image, adding the score and level text, and playing some music.  To navigate through this game programming tutorial use the page numbers at bottom, now go to page 2 by clicking that number at the bottom of this article to go to that page.


  •  
  •  
  •  
  •  
  •  

Iphone SDK Development Tutorial #2 – Transitioning To Objective-C

  •  
  •  
  •  
  •  
  •  

This is the second tutorial on iPhone application development.

This tutorial is geared towards someone with a basic understanding of C/C++ or Java and object oriented principles.  It is a basic overview of some Objective-C syntax that someone transitioning from another language is unlikely to be familiar with.

If you’re unfamiliar with C/C++ or Java a great resource is the extensive http://www.learncpp.com/.

>>> The Cheatsheet can be found here <<<

Please note that this cheatsheet will be updated quickly as we continue through the iphone tutorials, and this first iteration is designed only to cover some basic syntax.

Optional Exercise:
Go through the Hello World sample source code  for the iPhone using the understanding gained from the video, referencing the cheat sheet if  necessary along with the Xcode research assistant (see first tutorial if you are unfamiliar with it). In  the next tutorial we will be going through this code line by line.


  •  
  •  
  •  
  •  
  •