SDL/Opengl game C++

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,120
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 27, 2010

My second project. 6 weeks and re-using my library from the worms game!

All the backgrounds are generated from bitmaps, where each pixel colour is mapped to a type of tile. This meant I could paint my levels in photoshop really easily :-)

I also had a small attempt at some AI, the zombie lemming scans ahead of himself for a brain, and if he finds one he runs towards it. If it is blocked, because he is stupid he will just headbut the wall untill he can get it! haha.

I made the sprites from screen shots from plants Vrs Zombies, one of my favourite games! The music is from them too.

enjoy :)

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (CallumBGood)

  • Where did you learn how to do this? What are some good C++ books that could teach me this? I already have most of the basics and stuff down.

  • @MonocleWizard 'Beginning C++' is brilliant, even if you know the basics its still a good book. Focus on SDL is a pretty good intro into 2D graphics with SDL and Game Physics Engine Development is a great start to physics. I learned at a college while reading all of these hence being able to do this after just 12 weeks :)

  • Awesome work.

  • @Ty5479 Thanks Ty! I happen to think my worms game is much better, but this one was much much harder :-) Cheers for the comment.

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • This seriously is the 1st video WITHOUT dislikes I watched. I used to use game maker a few years ago, just for the hence I wanted to create games. I found out about C++ in a bookstore (a very big one, not a boring library) and I thought; well, cout isn't a game! Because of a community I'm on, I found out about SDL and gained some research after it. Right now I'm learning it, I can't wait when I'm done learning!

  • @aroymart yeah, me too. I'm teaching Game Development using C++ and SDL was my choice of library. Now I want to know how to build for the iPhone. Sample code would be nice if it's free.

  • wow! i just started using opengl/sdl and this is very inspiring!

    is there any place i can download this? or maybe look at the source code?

  • Just one thing: WOW!

  • Well done, very impressive for 6 weeks ^^

    I myself am planning to use SDL as a means to help make my OpenGL games cross platform and easily compilable, great work :D

  • Very good mate! Keep up the great work!

  • This is great man, keep up the good work

  • how did you make menus in SDL, polymorphism or how?

  • @Kodamin Cheers for the comment! It's all based on pixel perfect collisions. I monitor a small area near the zombies knee for collisions with the painted shapes, if his knee is hitting it, then the engine assumes the slope is too steep. Well...that is how it is supposed to work anyways Sometimes he can climb vertical slopes! Getting the angle would probably work better, and also be a lot quicker :P

  • looks like Crayon Physics in a way. good work =]

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more