source/graphics.c
void sprite_set_offset(struct Sprite* sprite, int offset) {
    /* clear the old offset */
    sprite->attribute2 &= 0xfc00;

    /* apply the new one */
    sprite->attribute2 |= (offset & 0x03ff);
}
/* change the tile offset of a sprite */
change the tile offset of a sprite
change the tile offset of a sprite
void sprite_set_offset(struct Sprite* sprite, int offset) {
    sprite->attribute2 &= 0xfc00;
    sprite->attribute2 |= (offset & 0x03ff);
}
void sprite_set_offset ( struct Sprite * sprite , int offset ) { sprite -> attribute2 &= 0xfc00 ; sprite -> attribute2 |= ( offset & 0x03ff ) ; }
change the tile offset of a sprite
change the tile offset of a sprite
/* clear the old offset */ /* apply the new one */