abstracted sprite coord computation