Mostly look at the dbRotateSprite function and dbMoveSprite function. That gets you started. On a personal level I prefer to keep track of the ball's data myself. I use floats to track the x and y position but use ints in the dbSprite (num, x, y, img) function to place it. If I have an angle and a speed I break them down into displacement values for the x and y movement and add these components to the current position to get the new postion.
xDisplacement = dbCos (angle) * speed;
yDisplacement = dbSin (angle) * speed;
Loop {
x += xDisplacement;
y += yDisplacement;
dbSprite (num, x, y, imgnum);
}
Lilith, Night Butterfly
I'm not a programmer but I play one in the office