Shortcut for chapter specific information

Showing posts with label Objective-C. Show all posts
Showing posts with label Objective-C. Show all posts

Sunday, October 2, 2011

More game programming

After working a while on the game I took up, it is not as difficult as I thought.  In fact a lot of logic are pretty interesting.  

Whenever you feel you don't understand something, try to understand it from main.   If you can work out the whole logic of how your main function goes down to a particular functionality of your program.  Then there must be something wrong with your thinking.  The program I touched today is in Objective-C with Cocoa.   So part of what I am doing today is just to understand what's going on with the whole framework how it works.  

The bought me dividend and what the code soon becomes obvious with me.   So I start to be able to change the code in a quicker manner.

Game programming is also a strange subject.  Sometimes, the fun of the game really depends on not just the game logic.  It also depends on the graph and music or more importantly the whole combination.   The game I picked up was rather odd at the point I picked it up.   Though after a while of meditation, the impression change.  And it only takes a change in the background music.

I was able to compile and ObjC program with class!

Sounds simple.  The devil is the detail.   In fact, when I try to compile my code using simple gcc, I always have trouble to get the library for NSObject.  It took me about an hour to sort of test the solution out.

In any case, I finally get the the part about creating class goes up and running.   This makes sense now.  I might need to write my own tutorial soon.

Let's take a break.  I will go to figure out some more examples of Objective-C.

Started to learn some Objective-C

I am trying to follow this tutorial:
http://www.otierney.net/objective-c.html

Tuesday, September 13, 2011

Some fun with iPhone development

As a way to stimulate my brain, I am developing my capability on writing iOS applications.  This should be fun because it is stretching my comfort zone.  

So far, I have successfully write a Hello World app and put it through an iPhone simulator.  Though it is much more difficult to get it run it on a device.  (Ask my fellow iOS developer.)

That will also mean I need to get myself fairly proficient in Objective-C.  I am confident that this will not be as difficult as Java.