With todays technology i doubt there is huge amount of math tasks to do when you making a video game, I belive todays programs do the math for you.
But yes i would belive you would have to do write some lines to do this and that, but im not sure, im not a video game maker. Im the one who play them
Here is a page that show you some examples on how math is used in making video games:
http://nrich.maths.org/1374
Here is the conclusion from the page:
I've shown you quite a few examples of where maths is used in making computer games, there are many, many more examples. In fact, it is almost impossible to make any game without using maths, even Pacman uses some maths (although it is quite easy maths compared with the hard stuff in this article).