I think the ending is happy, knowing that all those enemies had come from different trees means that there are dozens of trees just within his proximity, the premise of the game is that there's no oxygen, now that we know there's s many trees, we know there's oxygen left on the world, at least giving humans the chance to fight back and restore the planet to what it once was,
there's still hope