source/graphics.c
void sprite_move(struct Sprite* sprite, int dx, int dy) {
    /* get the current y coordinate */
    int y = sprite->attribute0 & 0xff;

    /* get the current x coordinate */
    int x = sprite->attribute1 & 0x1ff;

    /* move to the new location */
    sprite_position(sprite, x + dx, y + dy);
}
/* move a sprite in a direction */
move a sprite in a direction
move a sprite in a direction
void sprite_move(struct Sprite* sprite, int dx, int dy) {
    int y = sprite->attribute0 & 0xff;
    int x = sprite->attribute1 & 0x1ff;
    sprite_position(sprite, x + dx, y + dy);
}
void sprite_move ( struct Sprite * sprite , int dx , int dy ) { int y = sprite -> attribute0 & 0xff ; int x = sprite -> attribute1 & 0x1ff ; sprite_position ( sprite , x + dx , y + dy ) ; }
move a sprite in a direction
move a sprite in a direction
/* get the current y coordinate */ /* get the current x coordinate */ /* move to the new location */