Since velocity is set to:velocity -= 10;
when we press the spacebar, and this itself is inside the while loop, does this mean that the velocity would keep accelerating if we repeatedly pressed the spacebar?
while
{
if (IsKeyPressed ( KEY_SPACE ))
{
velocity -= 10;
}
}