Page 2 of 2

Re: Real Games

Posted: Sat Sep 26, 2009 4:02 pm
by Jaxerhaxer
Moosader wrote:
Jaxerhaxer wrote:So guys which one is better for beginner
C++ Primer Plus (5th Edition) or Sams Teach Yourself C++ in One Hour a Day (6th Edition)
Why are you still here, kid?
Because you guys are funny.... BITCHES..

Re: Real Games

Posted: Sat Sep 26, 2009 4:12 pm
by Pickzell
Good one.
GASP HE SED TEH BEE WURD!

Re: Real Games

Posted: Sat Sep 26, 2009 4:28 pm
by JaxDragon
Im not sure if this kid is TheNiceLord or just stupid.

Re: Real Games

Posted: Sat Sep 26, 2009 4:41 pm
by Jaxerhaxer
Shutup, I dont see any of your projects, have you even codedea physics engine?

Re: Real Games

Posted: Sat Sep 26, 2009 4:54 pm
by JaxDragon
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
If you would have searched the forums, you would see that I have indeed posted a project. Granted it was an early project, but I don't see any of YOUR work. LOL and I highly doubt YOU have coded a physics engine if you cannot even understand the content of a C++ book. You sir are indeed quite the idiot and I suggest you not post such topics/replies being rude, lazy, or ignorant.

Re: Real Games

Posted: Sat Sep 26, 2009 4:54 pm
by Moosader
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
^ Does sound like BJ.

Re: Real Games

Posted: Sat Sep 26, 2009 4:55 pm
by JaxDragon
Moosader wrote:
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
^ Does sound like BJ.
Quite so.

Re: Real Games

Posted: Sat Sep 26, 2009 5:23 pm
by Bludklok
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
This has been asked already but, why are you still here? Your going to get IP banned and I know you're not smart enough to know how to change IP so just leave. You're just making yourself look like the rest of the ignorant 10 year olds we've had to deal with in the past.

<< EDIT >> Oh sweet, Junior TCR rank. :D

Re: Real Games

Posted: Sat Sep 26, 2009 6:00 pm
by Pickzell
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
Jaxerhaxer wrote:I am kinda new to sdl, and kind of new to C++ in general, but i got lots of books on it, anyways..
I am having trouble displaying images, you see, I am using sDL_Rect to display images, and it comes up and everything, but it is so hard to get teh right part of the image on the screen, and i rarely ever can even get the image in the right spot without making the image screen huge!!
Some of the code is not needed to display the image, but i am too lazy to take it out right now.
Here is my code:

Code: Select all

#include "SDL/SDL.h"
#include "stdio.h"
const int WINDOW_WIDTH = 640;
const int WINDOW_HEIGHT = 480;
const char* WINDOW_TITLE = "program";

int main(int argc, char **argv)
{
   SDL_Init( SDL_INIT_VIDEO );

   SDL_Surface* screen = SDL_SetVideoMode( WINDOW_WIDTH, WINDOW_HEIGHT, 0, 
      SDL_HWSURFACE | SDL_DOUBLEBUF );
   SDL_WM_SetCaption( WINDOW_TITLE, 0 );
   SDL_Surface* bitmap = SDL_LoadBMP("im2.bmp");
   if(5+5 == 10)
  rename("output.txt", "edit.txt");
   // Part of the bitmap that we want to draw
SDL_Rect source;
source.x = 40;
source.y = 0;
source.w = 50;
source.h = 50;

   // Part of the screen we want to draw the sprite to
   SDL_Rect destination;
   destination.x = 400;
   destination.y = 100;
   destination.w = 65;
   destination.h = 44;

   SDL_Event event;
   bool gameRunning = true;

   while (gameRunning)
   {
      if (SDL_PollEvent(&event))
      { 
         if (event.type == SDL_QUIT)
         {
            gameRunning = false;
         }
      } 


      SDL_BlitSurface(bitmap, &source, screen, &destination);

      SDL_Flip(screen);
   }

   SDL_FreeSurface(bitmap);

   SDL_Quit();

   return 0;
}


Re: Real Games

Posted: Sat Sep 26, 2009 7:31 pm
by Falco Girgis
Jaxerhaxer wrote:Shutup, I dont see any of your projects, have you even codedea physics engine?
I have, fuckface. Banned.