TDD and Simple Game Math

Published March 25, 2019
Advertisement

In this Blog Entry I will translate examples from the tutorial Math for Game Developers from C++ to C# and TypeScript. I will add unit tests to the examples.

I use:

C# and TypeScript are very similar. TS has: properties and generics. TS has keywords like C#: interface, abstract (for classes and methods). Author of C# and TS is Anders Hejlsberg

001. Character Movement (Points and Vectors)

TypeScript

C#

 

0 likes 2 comments

Comments

Gidrek

Cool! I just bought one book about Maths in Game Development and your channel is very interesting.

March 26, 2019 03:27 AM
8Observer8
4 hours ago, Gidrek said:

Cool! I just bought one book about Maths in Game Development

I just rewrite these simple examples from the Youtube Channel of that guy to C# and TypeScript for practice in math, programming, and TDD (writing unit tests). I think it is good to have everyday practice with math because human brain has a property to forget something that you do not use.

4 hours ago, Gidrek said:

I just bought one book about Maths in Game Development

I have a lot of book in eBook format. I study a few of them:

  • 2011 - 06 - Mathematics for 3D Game Programming and Computer Graphics - 3-rd edition - Eric Lengyel -> description
  • 2011 - 11 - 3D Math Primer for Graphics and Game Development - Dunn F., Parberry I -> description
  • 2013 - 04 - Physics for Game Developers - 2nd Edition - David M. Bourg, Bryan Bywalec -> description -> source code
  • 2014 - 05 - Physics for JavaScript Games, Animation, and Simulations - Adrian Dobre, Dev Ramtal -> description and code

And I study these lessons:

Theory is important but practice using programming is more important. I think it must be: 20% theory and 80% everyday practice.

March 26, 2019 08:26 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement