our first c++/sdl game

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
even821
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 2
Joined: Sat Mar 17, 2012 11:30 pm

our first c++/sdl game

Post 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
User avatar
YourNerdyJoe
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 79
Joined: Sun Oct 02, 2011 3:28 pm
Current Project: Top secret (not really) Top-Down Shooter for GBA
Favorite Gaming Platforms: GBA, Gamecube, PC, 3DS
Programming Language of Choice: C/C++
Contact:

Re: our first c++/sdl game

Post 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 :)
See that?.....
Exactly
https://yournerdyjoe.github.io/
even821
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 2
Joined: Sat Mar 17, 2012 11:30 pm

Re: our first c++/sdl game

Post 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
Post Reply