China's Tencent Holding Ltd has agreed to buy a 29% stake in Oslo-listed computer games developer Funcom , becoming the biggest shareholder, Funcom said on Monday.