added point2f and sprite trait