View Single Post
  #1 (permalink)  
Old March 19th, 2012, 10:39 PM
whjones whjones is offline
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default So, I was attempting the Blocker project and ...

Aloha everyone,

My name is Bud and I'm currently living in Honolulu. I have an iOS development company, but am really new to Objective-C. I've only written four apps, and they're simple database-driven (SQLite) apps. I've always wanted to create a good game, but didn't know where to begin.

To make a long story short, I got Beginning iOS Game Development and have been going through the book. I got stuck in the Blocker project, because when I run the app the first time (pg 195), it compiles and runs, but no blocks are created.

I got confused when the author writes "Users of your class will pass you a frame size and a color to initialize block of a specified color." Where, exactly, does the user pass on this information? What I think is happening is that when the init method of the BlockView.m file is called, it doesn't know the value of inputColor and just executes the rest of the code without creating the blocks. All I get is a grey screen. I've been over and over the code, but can't find the error. Has anyone else experienced this issue?

Last edited by whjones; March 19th, 2012 at 10:56 PM..
Reply With Quote