Well, you can use the dbSprite() function. Put it in the while(LoopGDK()) section of your code. To move the sprite left and right on the screen you need to change the X value, and to move the sprite up and down you have to change the Y value.
The best way to do that is to make an int value to hold the X and Y coordinates of the sprite, this needs to go inside the void DarkGDK(void) section:
int X = dbSpriteX(); //sprite X value
int Y = dbSpriteY(); //sprite Y value
After that you need to actually update the sprites position, if not it would draw the sprite at the same area on the screen. So just use dbSprite():
dbSprite(sprite # here, X, Y, image # for the sprite);
Then you would have to subtract the X value to move left and add to it to move right. Subtract from the Y value to move up, add to go down. So you need a keypress function to actually do that. It should also go in the while(loopGDK()) section.
if (dbLeftKey()) //Move left
{
X -= 1;
}
if (dbRightKey()) //Move right
{
X += 1;
}
if (dbUpKey()) //Move up
{
Y -= 1;
}
if (dbDownKey()) //Move down
{
Y += 1;
}
?