this would be enough:
just check if the bulletFlies and if so, leave
else if (key == ' ') {
if (bulletFlies)
return; // leave
bulletFlies=true;
bulletX = gunX+14;
bulletY = gunY+4;
}
this would be enough:
just check if the bulletFlies and if so, leave
else if (key == ' ') {
if (bulletFlies)
return; // leave
bulletFlies=true;
bulletX = gunX+14;
bulletY = gunY+4;
}