9- collision - Detecting Collisions CSE to Fall 2010...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style 5/7/11 Detecting Collisions CSE 390 Fall 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/7/11 Create a new project Just to do something different this time, let’s create a Utility Application. It has a built-in feature, the flipside view, that we’ll use to confirm that the collision of our 2 image objects was successfully detected. First, create a couple of images to use. As we have done before, add them to the Resources folder of the Xcode Utility Application you just created.
Background image of page 2
5/7/11 Set up the MainViewController.h file There are 2 views in a Utility app – the main view and the flipside view. In the Main View folder, open up the MainViewController.h file. We’ll need to declare 2 image objects and their properties. We’ll also need to create a method called checkCollision . One method is already given to us – an IB action called
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/7/11 Create the image objects #import "FlipsideViewController.h” @interface MainViewController : UIViewController <FlipsideViewControllerDelegate> { IBOutlet UIImageView * image1 ; IBOutlet UIImageView * image2 ; }
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/07/2011 for the course CSE 390 taught by Professor Scarlatos during the Fall '11 term at SUNY Stony Brook.

Page1 / 12

9- collision - Detecting Collisions CSE to Fall 2010...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online