O'Reilly logo

Learn Lua for iOS Game Development by Jayant Varma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter     4

Math with Lua

Love it or hate it, if you have decided to be a developer, you will have to come face to face with math. It is indeed surprising to see how many students dislike or shy away from math, but it just comes back to us in some form or the other, irrespective of our profession. An accountant needs to look at the accounts and add them up (requiring math), a surveyor needs to apply trigonometric principles to get elevation and terrain information, a banker needs to calculate interest and yield for investments, and so on. It reminds me of Homer Simpson, who once said, “English? Who needs that? I’m never going to England!” However, you have decided to be a developer, and you will come back to this time and time again, as many ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required