Topic:   SDL C++ Game - XCode 4   (Read 9373 times)


0 Members and 1 Guest are viewing this topic.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
SDL C++ Game - XCode 4
« on: January 28, 2012, 02:25:44 AM »
So late at night Kurt and I decided to learn how to make a C++ game using the SDL framework for drawing, GUI, input, and image loading.
It took lots of research, reading, tutorial trying and failing but...

We found success.

(Arrow keys to move the ball)

It might not look like much but that demo features key input, drawing an image to the screen, and an update timer.

Try out the app: (Universally Compiled, 10.4+)
http://cl.ly/0Y0C3c330E0K3R1z1j1m
Check out the source code: (You might need the SDL frameworks installed to compile)
http://cl.ly/0S053s312L3705213Q1C
(Files attached to post just in-case links die)

Fairly epic, eh?
« Last Edit: January 28, 2012, 02:30:03 AM by Gan »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: SDL C++ Game - XCode 4
« Reply #1 on: January 29, 2012, 11:57:07 AM »
In case links die? Are you saying Cloud App might delete things?
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: SDL C++ Game - XCode 4
« Reply #2 on: January 29, 2012, 12:28:16 PM »
I don't trust external hosts.

I use to use Mediafire. Then my links started expiring. Eventually space runs out, I'm sure they might start deleting old files after a time period eventually.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: SDL C++ Game - XCode 4
« Reply #3 on: January 29, 2012, 12:29:00 PM »
I don't think mediafire does that, and if they did they don't now.
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

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: SDL C++ Game - XCode 4
« Reply #4 on: January 29, 2012, 08:26:00 PM »
I haven't logged into mediafire in ages, and my stuff's all there.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: SDL C++ Game - XCode 4
« Reply #5 on: January 30, 2012, 07:46:34 PM »
Well I'd like to be sure I have a good place for all the files when I compile games with Gan's program.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/