Computer games can contribute to obesity in some teenagers, but it is not the games alone that cause it.
Weight gain tends to happen only when a young person plays constantly and forgoes physical activity for long stretches. In moderation, gaming is simply one of many leisure activities and does not, by itself, lead to obesity.
So the answer is nuanced: excessive, sedentary gaming can be a factor, while balanced play generally is not.