Search:

Type: Posts; User: caffeinated

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    5,663

    There must be something wrong with something else...

    There must be something wrong with something else in my code because that still doesn't work. Actually I'll compile a win vs so you can see what I mean.


    /edit
    this is the working one with the...
  2. Replies
    8
    Views
    5,663

    Mmm.. still isnt helping... this is a cleaned up...

    Mmm.. still isnt helping... this is a cleaned up version of my original check..




    if( (leftA <= widthB) && (topA >= topB) && (bottomA <= bottomB) )
    {
    return 1;
    }
    if( (leftA >=...
  3. Replies
    8
    Views
    5,663

    Ok, that makes a bit more sense, I was wondering...

    Ok, that makes a bit more sense, I was wondering why text was so hard to line up.
  4. Replies
    8
    Views
    5,663

    a.x + a.w; // thats the right side btw a.y -...

    a.x + a.w; // thats the right side btw
    a.y - a.h; // thats what i use for the bottom..


    anyways, you mean I should do something like this..
    if (A.x <= (B.x + B.w) && A.y >= (B.y + B.h) )
    ...
  5. Replies
    8
    Views
    5,663

    [sdl] help with pong collision

    Im working on a collision system for a simple pong game and I'm having some troubles..

    this is my collisionCheck()

    int collisionCheck(SDL_Rect A, SDL_Rect B)
    {
    //The sides of the...
Results 1 to 5 of 5