First...
I can see other bracket after the void brackets, did you putted it into a class?
Also do not name the void with public... if it is inside a class just do this
class awesomeClass
{
public:
//public voids go here
private:
//private voids go here
}
And now a problem with the void itself...
You wrote
public void Draw(RenderWindow window, float delta)
{
window.Draw(background);
window.Draw(player);
window.Draw(enemy);
window.Draw(dead);
}
YOU need to do
... Draw(RenderWindow *window, ...)
{
window->Draw(background);
...
}
Notice the * and ->.
And when you are calling the funtion you cannot do Draw(window,....); You need to do Draw(&window,.....); ...
I used a pointer (*) maybe you can use a reference... but pointers work for me.
Hope I helped.