O'Reilly logo

Video Game Programming for Kids, Second Edition by Jonathan S. Harbour

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 2

You Forgot Your Combination?!

Video games have a lot of math in them. If you’re good at math, then it’s a little easier to program more advanced video games. But even if math isn’t your best subject, you can learn the math tricks programmers use in their video games. It’s just about learning something new. Like any subject, sometimes you have to work a little harder to learn it. But when you learn it, you know it and then it’s easy. I’m not talking about the math to launch a spaceship to Mars or something! What I mean is, we can start off with easy problems and learn how to make a simple game with random numbers.

The Guessing Game

You’re going to make a classic game called the Guessing Game. The computer will think of a number from ...

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