Both player and platform has a kind of fucky way of setting both its own position and dimensions to be equal to its sprite properties postition and dimensions. Some of this could probably be abstracted out into a Parent Entity class that provides common methods to setting x, y coordinates, the existing "moveTo" function. and setting height and width.
Both player and platform has a kind of fucky way of setting both its own position and dimensions to be equal to its sprite properties postition and dimensions. Some of this could probably be abstracted out into a Parent Entity class that provides common methods to setting x, y coordinates, the existing "moveTo" function. and setting height and width.