add xr and yr tofor simple periodic repetition of moving sprites