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 4

Captain Dread’s Secret Pirate Treasure

I’ll bet you’re starting to feel pretty good about programming in BASIC at this point. It is important to learn the BASIC language so you know what statements you can use in your programs. In this chapter, you will learn more about real-time loops, timing, and graphics. Timing is very important in video games!

The game you will be making is called Pirate Treasure. The goal of this game is to pick up all the buried treasure on the island before the time runs out. While making this game, you will learn about sub-procedures.

Using Timers

A timer is like a stopwatch that knows how to keep track of time. When you push the start button on a stopwatch, it starts counting seconds and milliseconds (one-thousandth ...

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