Put sprite code in a single file