# Math lessons i should know for 2D Game Developing?

This topic is 2097 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello, i recently just started off with SFML and i stumbled upon a math lesson known as the 'Vector Algebra', i believe it's a Grade-12 mathematics lesson and i'm still a 2nd year student so i didn't know what it is, anyways, after spending quiet some time  learning this lesson on khanAcademy, i would like to know what are some other mathematics lessons that are most likely going to appear after this one? also, is there like a book that teaches you math but the 'games developing' perspective? 'rather than learning the entire lesson, that way you could just learn a portion of it (the one that you're going to need for games only) Thank you.

Edited by ek banz

##### Share on other sites

I dunno. For 2D programming you want a good grasp of trigonometry and vectors though.

Skimping on maths is a bad idea for games programming, take as many maths courses as you can.

##### Share on other sites
I'm pretty sure there's both a math and physics book "for game designers/developers". I own one of them, but my books are packed up for the moment. Trigonometry, vectors, matrices...depending on whether you're doing soley 2d graphics or 2d transforms in a 3d system

##### Share on other sites

Knowing the maths is half of the game, you also have to learn how to properly implement it (if I got a penny for every time a game implemented their gravity so the player follows an awkward "triangle curve" and not a parabola, I'd be rich).

Looking at other people's code is the best thing you can do to learn that. You don't have to understand everything, but you can look at specific sections of code to better understand how they did it, and then compare it to yours.

##### Share on other sites

Try some of our maths articles -- in particular, the "math for game developers" series provide some good video-based explanations of useful topics.

Beyond basic maths, vector algebra, and perhaps trigonometry a lot of maths topics are only useful for specific games rather than generally useful in every game; your best bet is to simply start out with different game ideas and then learn whatever you need to know to proceed.

##### Share on other sites

It really depends on your game design though. If you're making othello you don't need linear algebra and even physics, unless you want player to throw a ball and make a mess on the board, realistically, then you need those. If you're making action game like Odin Sphere/Muramasa: The Demon Blade, you need all of those (some of the physics). It really depends on your game. But honestly you need linear algebra and some physics.

Edited by mychii

##### Share on other sites

A lot of game programming books offer some math crash course. With it you will be able do a lot of stuff.

• 18
• 29
• 11
• 21
• 16