public void move()
    {
        animation = (animation + 1) % 50;

        x -= left? speed:0;
        x += right? speed:0;

        y -= up? speed:0;
        y += down? speed:0;

        if ( x < 0 )
            x = 0;
        if ( x + width > 800 )
            x = 800 - width;

        if ( y + height > 600 )
            y = 600 - height;
        if ( y < 400 )
            y = 400;

        if ( isShooting )
            shootGuns();
    }