Page 1 of 1

our first c++/sdl game

Posted: Sat Mar 17, 2012 11:34 pm
by even821
me and my friend recently finished our first ever c++/sdl game. he did the graphics, and i did all the coding.
i would love to get some feedback on it, so if anyone have the time, please check it out: http://www.luxfictus.com/indexgames.html

Re: our first c++/sdl game

Posted: Mon Mar 19, 2012 11:46 am
by YourNerdyJoe
Not bad
I like the idea of going through levels in pong instead of a simple score.
However when I was looking through your images folder I noticed that you had an image for each time you lose a life. Think of LoZ and how many images they'd have to draw for when Link has max health. A better way to do this would be to draw an image for "life" and "no life" and then do somthing like this:

Code: Select all

for(int i=0; i<maxlives; i++)
{
  if(i>lives)
  {
    DrawNoLife(x+(i*32),y);
  }
  else
  {
    DrawLife(x+(i*32),y);
  }
}
Hope this will help and this game of yours is really fun :)

Re: our first c++/sdl game

Posted: Mon Mar 19, 2012 3:12 pm
by even821
yes the way the life's is coded is kinda messy, but i couldnt be bothered to rewrite the code at the end of the project, but i am planning to rewrite it eventually to see how much i have improved my skills. thanks for the tips though, always fun to learn how to better my skills :D

oh and its very nice to hear that you liked the game :D