public Projectile(float x, float y, boolean goingUp, boolean friendly) {
        super(TextureManager.loadTexture(friendly ? PROJECTILE_TEX : PROJECTILE_TEX_ENEMY),
                "none", x, y, PROJECTILE_WIDTH, PROJECTILE_HEIGHT);
        if(goingUp) {
            this.velocity.y = PROJECTILE_VEL;
        }
        else {
            this.velocity.y = -PROJECTILE_VEL;
        }
        this.friendly = friendly;
        if(!friendly) {
            this.velocity.y /= 2.0f;
        }
        this.entName = ENT_NAME + ":" +  (friendly ? FRIENDLY : HOSTILE);
    }