Player struct generates C2440 error
<p>I am getting the errors: <br>
error C2440: 'initializing' : cannot convert from 'int' to 'const Player<br>
error C2628: 'Player' followed by 'int' is illegal (did you forget a ';'?)<br>
from line 5, <code>const int WIDTH = 1280</code>
 but I don't understand what I did wrong.</p>

<p>My declarations:</p>

<pre><code>#include &lt;allegro5\allegro.h&gt;
#include &lt;allegro5\allegro_primitives.h&gt;
#include "objects.h"

const int WIDTH = 1280;
const int HEIGHT = 720;
const float GRAVITY = 1.5;
const float FORCE = 1.4;
const float K = 0.25;
enum KEYS{UP, DOWN, LEFT, RIGHT, SPACE};
bool keys[5] = {false, false, false, false, false};

void InitPlayer();
void DrawPlayer();

Player player;
</code></pre>

<p>InitPlayer function:</p>

<pre><code>void InitPlayer() {
    player.x = 0;
    player.y = HEIGHT - 20;
    player.vy = 0;
    player.vx = 0;
    player.fx = 0;
    player.jumping = false;
}
</code></pre>

<p>Player struct:</p>

<pre><code>struct Player {
    float x;
    float y;
    float fx;
    float vx;
    float vy;
    int direction;
    bool jumping;

    void Jump() {
    if(!jumping) {
        vy = -15;
        jumping = true;
        }
    }
}
</code></pre>
