Math plays a bigger role in game design than most people realize, and how much you use depends heavily on the kind of code you're writing.
Across virtually all games, though, coding and scripting share a common thread: you have to define a lot of variables so the game functions within its intended limits. For a language like Java, for example, you'll use math to set up systems of numbers that govern things like map sizes, damage calculations, and countless other mechanics.
In short, math is the invisible framework that keeps a game balanced, consistent, and playable.