Renderer now relies on the position of the SPRITE. So, you can render any object that has a sprite attached to it through the renderer. You just need to make sure in the draw() you call currentSprite.setPosition(x,y), to make sure the sprite follows the object around.
This creates a better seperation of classes, I think, at least.
Let me know what you guys think.
Removed dependency on Player from Renderer.
Renderer now relies on the position of the SPRITE. So, you can render any object that has a sprite attached to it through the renderer. You just need to make sure in the draw() you call currentSprite.setPosition(x,y), to make sure the sprite follows the object around.
This creates a better seperation of classes, I think, at least. Let me know what you guys think.