Retrogamecoding(.org) > General game development

Mathematics for game programming

(1/2) > >>

dragomrak:
Hello,

I tried to understand some code examples and now I got one question, which seems to be rather important for me. What do you think, how much mathematical knowledge I should have to do 2d game programmes. I am really not good in mathematics. Perhaps I undertstand things like the sentence of Pythagoras, but I never would have any idea, that I have to use it in a specific situation. And unfortunately I have no idea how sinus, cosinus and so on work. It should be possible to understand it ( ;-) ) but even if I manage to understand that, I would  not have any idea that I have to use it in a specific situation. I think that I have to know all that and - more important -  to know, when I have to use that. But obviously I am the greatest mathematical fool on earth. Mathematical issues don't reach my brain. That might be a problem. Does anybody understand, what I mean?

B+:
Hi Dragomrak,

We can try a little math course, dialogue if you want.

My guess is that you don't know the difference between radians and degrees for angle measures?

Probably need to get that straightened out first, to use SIN and COS functions because they deal with angles.

On the other hand, the use of SIN and COS, trig functions, is rare especially for those who avoid math and you might get a ways into game programming without that knowledge, just copy someone else code.

dragomrak:
Hi B+,

many thanks for you offer to start a little maths course. That touches my problem exactly.  If you say, that trig functions are rare then I can try to learn the rest but if I come to the point, where I need them I would even not recognize that I need them. I read some tutorials and books regarding game programming, but there always routines, where I need them. So in this case I have to use some else code. That could be a solution. Perhaps I should try text games. ;-)

B+:
There are all kinds of games. Yes, fun can be yours with text or dialogue type games.

Games can teach too, and in fun way!

dragomrak:
Can I overcome that problem, when I use sprites instead of figures, which I have to draw myself? As far as I understood I can move a sprite on a background and detect kollisions without that stuff. Is that wrong?

Navigation

[0] Message Index

[#] Next page

Go to full version