class bullet{ float x,y,speed; bullet(float _x, float _s){ x=_x; y=height-33; speed = _s; } void update(){ move(); checkInvaders(); checkUpperBorder(); drawMe(); } void move(){ y -= speed; } void checkInvaders(){ for(int i=0;i