Search:

Type: Posts; User: Nick

Search: Search took 0.03 seconds.

  1. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    Here's some better code and I used SDL_Rect so it...

    Here's some better code and I used SDL_Rect so it should be



    easier.
  2. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    I guess I don't need to be setting xaccel and...

    I guess I don't need to be setting xaccel and yaccel to 0 in
    the update function.
  3. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    /* very crude probably slow way of drawing a box ...

    /* very crude probably slow way of drawing a box
    assumes screen is setup to 32 bits
    */
    should be 16 bits.

    My erase_box and draw_box are so slow that
    they eat up 99% of the time running.
  4. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    Ok here it is, your code is probably not working...

    Ok here it is, your code is probably not working
    because your missing a break statement in the switch
    statement where your handling input.



    #include <SDL/SDL.h>
    #include <memory.h>...
  5. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    I'll code some stuft with a scarry box that you...

    I'll code some stuft with a scarry box that you move around.
  6. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    It's obvious to me look at the disclaimer on...

    It's obvious to me look at the disclaimer on Sunlight's website

    right


    under copyright.
  7. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    Not sure why the code as so many spaces. Anyways...

    Not sure why the code as so many spaces.
    Anyways you should look at SDL_Event.h it's well commented.
  8. Thread: The great mystery

    by Nick
    Replies
    39
    Views
    9,259

    >> 1. Must press key for input (no holding it...

    >> 1. Must press key for input (no holding it down)






    I'm little confused but if I interpret correct, I had to do something

    similar to this to create a sliding motion with the mouse.
Results 1 to 8 of 8