Here's some better code and I used SDL_Rect so it should be
easier.
Type: Posts; User: Nick
Here's some better code and I used SDL_Rect so it should be
easier.
I guess I don't need to be setting xaccel and yaccel to 0 in
the update function.
/* 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.
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>...
I'll code some stuft with a scarry box that you move around.
It's obvious to me look at the disclaimer on Sunlight's website
right
under copyright.
Not sure why the code as so many spaces.
Anyways you should look at SDL_Event.h it's well commented.
>> 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.