OK your co-worker was too loud and blunt, but he was giving you a gift too. Now you know what other workers may be thinking.
I know it will be hard, but why not go to him and ask him what courses you can do to bring extra skills to the project? You won't regret it. Whatever you do, don't sulk.