Topic:   My iPhone Game Tutorials for Beginners   (Read 391450 times)


0 Members and 1 Guest are viewing this topic.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #180 on: April 28, 2011, 06:01:35 PM »
oh I get it thats a lot easier to understand than what's in the manuals on the site. :D
And I made the Hello world application, and that was super helpful.
Thanks for humoring all my questions about Object-C ;D
« Last Edit: April 28, 2011, 06:02:47 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #181 on: April 28, 2011, 06:31:43 PM »
what is the difference between the files that end in .m and .h
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #182 on: April 28, 2011, 06:34:22 PM »
Also when you create an iPhone project it gives a lot of different types of templates. What is the most basic one to start with, and what can you do with it?
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #183 on: April 28, 2011, 07:22:21 PM »
where can I find frameworks. (namely UIKit) I'm actually not quite sure what it is in the first place, I only know that you need it or another framework to make a game. So I don't know where to start looking :-[
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #184 on: April 28, 2011, 11:34:13 PM »
Quote
what is the difference between the files that end in .m and .h
.h is where you declare variables and functions you want to use in your code. Ex:
int myTestNumber;

Then in .m you'd put code like:
-(void)init {
    myTestNumber = 1;
}

Quote
Also when you create an iPhone project it gives a lot of different types of templates. What is the most basic one to start with, and what can you do with it?
That's a toughie, depends on the app. If you want to make a game, either a plain UIView, OpenGl or navigation controller template. For a utility app you might want to use the tabbar template.

Quote
where can I find frameworks. (namely UIKit) I'm actually not quite sure what it is in the first place, I only know that you need it or another framework to make a game. So I don't know where to start looking
The UIKit framework should already be attached. To see all frameworks, open the Framework folder in the left bar.

Hmm. I should scrap all my tutorials and make new ones. Cause I've learned a ton and can make them much simpler.

I-NEED-HELP


  • GMG Newbie

  • *


  • Posts: 40

  • I love YaBB 1G - SP1!
Re: My iPhone Game Tutorials for Beginners
« Reply #185 on: April 28, 2011, 11:41:24 PM »
Maybe I could add to your template. I added rotation to the OpenGL files and a function to draw rotated images. Also added a Player.h and Player.mm class (Yes, I use Objective-C++). This class has some basic stuff, like score, position, bounding box, image... maybe I will polish/post my version of the template sometime.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #186 on: April 29, 2011, 06:13:01 PM »
UIKit isn't in the frameworks folder under Mac OS X and it isn't under Library under iOS either. I found the cases for UIKit. Would it be a good framework for an iPhone game, and does it have motion control detectors, or do I have to find another framework?
Again thanks for the patience starting on things like this always give me the most trouble. :)
EDIT: oh now I'm super duper confused. I found it in the iPhone simulator ??? and I don't understand what I'm supposed to do to be able to use it for your own applications
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks
oh my head :(
« Last Edit: April 29, 2011, 06:19:08 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #187 on: April 29, 2011, 07:04:14 PM »
You're trying much too hard.

You don't need to physically find the UIKit framework. When you make a new project it should already be connected. If you want to connect frameworks to your project, just go to your target settings, link with libraries, hit the plus button, add the framework.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #188 on: April 30, 2011, 09:52:41 AM »
ooooohhhhhhhh ::) I see now. Thanks! Just two more questions about frameworks
what do they do? are they where the cases are located,
and what do you do with files whose names appear in red?
« Last Edit: April 30, 2011, 02:57:25 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #189 on: April 30, 2011, 12:42:08 PM »
Frameworks provide useful functions to do stuff.

For example the UIKit framework gives you all the neat UI classes. Like UIImage. Where you can load an image as easy as: UIImage* myImage = [UIImage imageNamed:@"My Image.png"];

I have no idea what you mean by cases.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #190 on: April 30, 2011, 02:52:20 PM »
I thought cases were the functions like you just gave as an example
Quote
UIImage* myImage = [UIImage imageNamed:@"My Image.png"];
The second time I said cases I meant to say files (just edited the post) I can explain it better with a screen shot:
http://www.mediafire.com/?pwrmqpm91xxw8qv
« Last Edit: April 30, 2011, 02:57:35 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #191 on: April 30, 2011, 03:21:01 PM »
It means your missing those frameworks. Hm. Your SDK appears connected, what're the bugs when you hit Build & Run?

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #192 on: May 01, 2011, 04:34:28 PM »
weird... it work perfectly. I checked all the processes it can do, and everything works. Here's the folder
http://www.mediafire.com/download.php?j2a853ff3ccjhbc
it's something for a tutorial on recognizing touches, and the like.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #193 on: May 01, 2011, 07:12:12 PM »
Well if it works there's no problem! ;)

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #194 on: May 01, 2011, 08:32:44 PM »
is it easy to make an app like Discover? it's an app that turns your iPod into a flash drive, and lets you read PDF's. The only problem is that the PDF reader is horrible, and I thought I might try my hand at remaking, and improving it.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to