Topic:   My Mac Game Tutorials for Beginners   (Read 43470 times)


0 Members and 2 Guests are viewing this topic.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
My Mac Game Tutorials for Beginners
« on: February 27, 2010, 09:40:51 PM »
Hey guys, I've finally come up with the time to make My Mac Game Tutorials for Beginners
 
The purpose of the tutorials is to teach you guys how to make your own games for the Mac platform using Xcode, Cocoa, and Obj-C. I have created a template(Download is below) that will make the process painless and quite fun.
 
Right-click to download. Stars(*) mean downloads that go along with tutorial.  
 
Tutorial #1(65mb,10min): StickMan! And the basics to making Mac Games
*Walking Stick Guy
 
*Mac Game Template Download
 
 
-Gandolf
P.S. If you encounter an error when trying to download a tutorial, that's because the tutorial is still uploading.
P.S.S. I go more into detail on syntax in the iPhone Game Tutorial Series, visit there to learn more of the basics.
« Last Edit: February 27, 2010, 09:44:22 PM by Gandolf »

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My Mac Game Tutorials for Beginners
« Reply #1 on: September 10, 2011, 10:28:57 PM »
how did you get that game-logic timer to work? It just looked like a regular method  :-/
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 Mac Game Tutorials for Beginners
« Reply #2 on: September 10, 2011, 10:52:12 PM »
It is.
You create an nstimer and set it to call a method every few milliseconds.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My Mac Game Tutorials for Beginners
« Reply #3 on: September 11, 2011, 04:16:29 PM »
Code: [Select]
//***Turn on Game Timer
gameTimer = [NSTimer scheduledTimerWithTimeInterval: 0.02
 target: self
   selector: @selector(handleGameTimer:)
   userInfo: nil
repeats: YES];
}

- (void) handleGameTimer: (NSTimer *) gameTimer {
//All game logic goes here, this is updated 60 times a second


//This updates the screen
[self setNeedsDisplay:YES];
}

oh of course NeXtStep  :P

where it says: "scheduledTimerWithTimeInterval: 0.02"
that is .02 of what? a second? But if its a second why does the method say it updates 60 times a second?
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 Mac Game Tutorials for Beginners
« Reply #4 on: September 11, 2011, 06:14:53 PM »
Yeah, that means the timer fires every .2 seconds.
Which is pretty much the same as 1.0/60.0 which is 60 frames a second.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My Mac Game Tutorials for Beginners
« Reply #5 on: September 11, 2011, 07:10:11 PM »
OOOOHHHH. I see  ;D Thanks
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

Avoinna


  • GMG Newbie

  • *

  • no avatar

  • Posts: 6

  • Gan is so awesome.
    • dapoxetine cheap
Re: My Mac Game Tutorials for Beginners
« Reply #6 on: September 05, 2024, 09:12:05 PM »
Seesaw nystagmus following whole brain irradiation and intrathecal methotrexate <a href=https://enhanceyourlife.mom/>priligy canada</a> Giorgi FS, et al