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


0 Members and 1 Guest are viewing this topic.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #60 on: April 11, 2010, 09:24:44 AM »
Yeah sure, though it may be later in the week before I'm able to post it.
Next Tutorial:
Real Buttons(Interface Builder), Fake Buttons and Sound.


-Gan
« Last Edit: April 11, 2010, 10:15:55 AM by Gandolf »

DWapps


  • GMG Newbie

  • *


  • Posts: 14

  • I love YaBB 1G - SP1!
Re: My iPhone Game Tutorials for Beginners
« Reply #61 on: April 12, 2010, 08:28:28 PM »
alright, thank you.

mcquoidellum


  • Guest
Re: My iPhone Game Tutorials for Beginners
« Reply #62 on: April 14, 2010, 01:13:20 PM »
tutorial topic #4, using the accelerometer? Drawing more complex shapes? using Open GLES for 3D graphics? haha that would be cool, not really basic. but..

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #63 on: April 14, 2010, 04:35:41 PM »
Ooh, accelometer ... That sounds like great tutorial material(especially now that I have a dev license).
As for complex shapes, what kinds?
Now for OpenGl, that'd be much later... No need for it at the moment.


-Gan

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #64 on: April 14, 2010, 04:57:30 PM »
Anything's possible to draw, you could manipulate individual pixels if wanted.


-Gan
P.S. I think I know a tutorial that goes pretty nicely into complex shapes if you want it...
« Last Edit: April 14, 2010, 05:03:44 PM by Gandolf »

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #65 on: April 17, 2010, 01:30:36 AM »
Can you please give an example of your drawString command.
I am trying to display a score and thought I could use this to do so but I'm not sure about the format of options such as "format".
Is this the best way to display a game score?
Thanks

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #66 on: April 17, 2010, 03:53:18 AM »
Sorry that should have read 'format of options such as "font"'

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #67 on: April 17, 2010, 08:00:03 AM »
For font put in @"Helvetica".


-Gan

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #68 on: April 17, 2010, 08:22:46 AM »
Just to tell you guys, I'm not going to release tutorials for a bit of time... I'm working on something new.


-Gan

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #69 on: April 19, 2010, 08:26:04 AM »
Just to let you guys know, I've figured out how to use OpenGL ES for 2D games. It's crazy fast and perfect for fast paced games involving lots of moving sprites.
Eventuallly I may make a tutorial for it or just release the template for people to use.


-Gan

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: My iPhone Game Tutorials for Beginners
« Reply #70 on: April 22, 2010, 02:53:06 AM »
Gan's dock (at least in the first video) has two SilverCreators :D

I wonder if the SilverCreator runtime could be rewritten in Cocoa to gain speed - except we lose Windows support. I would have to maintain two runtimes. Scratch that I guess.
« Last Edit: April 22, 2010, 02:54:13 AM by Mike_Richardson »

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #71 on: April 29, 2010, 11:44:27 PM »
Using your template I have been working on a game and would like to add a High Score screen. To do this I used Interface Builder to create a screen that allows the entry of a textfield - name. How can I switch to this screen from the template? It is easy to create new game screens and switch between them but how do you do it with an IB screen.
The new files I created are HighScoreView.h HighScoreView.m and HighScoreView.xib
I will also need to pass the name back.
Thanks!

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #72 on: April 30, 2010, 06:23:18 AM »
I haven't ever done something like that before..
I think there's a tutorial about it on icodeblog.


-Gan

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #73 on: May 10, 2010, 11:55:06 PM »
i am working through the high score text entry screen using a UIAlertView method, I am having a little bit of a problem with memory release issues but as soon as I work it out will post the code.

In the mean time can you suggest a way within your template to change orientation whilst the game is running?
You hard code it at the start but it would be great, especially considering future use of the iPad, to be able to recognise the moving of the view and to change the layout accordingly ie landscape to portrait and back again.

I know all the screen locations, including edges, will have to become variables but that is not too hard once you know what the layout is.
Thanks

I-NEED-HELP


  • GMG Newbie

  • *


  • Posts: 40

  • I love YaBB 1G - SP1!
Re: My iPhone Game Tutorials for Beginners
« Reply #74 on: June 14, 2010, 07:26:10 PM »
I am trying to write a platform game for the iPhone. I wrote a collision testing function that looks like this:

-(BOOL) collision: (CGRect)Rect1 Rect2:(CGRect)Rect2 {
if(Rect1.x > (Rect2.x+Rect2.width) || (Rect1.x+Rect1.width) < Rect2.x){
return FALSE;
}
if(Rect1.x > (Rect2.y+Rect2.height) || (Rect1.y+Rect1.height) < Rect2.y){
return FALSE;
}
return TRUE;
}

It almost works. When I try to build, I get these errors:

'CGRect' has no member named 'x'

'CGRect' has no member named 'y'

What are the coordinate values called? Please help.