If you really want to engage in this game programming, my suggestion is.
If you have a C foundation, you can directly look at the data structure, which is the most important basic course. There may be some things you don't understand in class, and you may feel some problems when programming. At this time, it is most effective to look at the book (personal experience).
Advanced mathematics is not used for practical programming (although it is a compulsory course in computer department)
Discrete mathematics is a compulsory course of data structure, but it is of little help.
Computer graphics, computer network and DirectX/OpenGL are indispensable.