The best way to beat most bosses in that game is to try to get behind them. IIRC, there is one programmed attack that will instantly warp your robot behind the boss and attack, but there has to be room back there (it won't work if the boss is backed all the way up to the edge of the screen.)