This lesson adds a new feature to the game. You'll see the benefits of the millis() timer approach when you see how quickly your JumpMan reacts to a collision. All of the hard work in setting up the code structure in lessons 12 and 13 will pay off here.  You'll see a function: a coding fundamental that has a big impact on how code is written in almost all languages.

1
2
/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

Now that you have a function in your program, you're seeing major concepts in code organization as well as function.  As your code grows, so does the importance of having good structure. Imagine organizing a small book shelf for yourself: not very difficult. Now imagine organizing a huge library used by thousands of people: you need to pay closer attention to the organization as well as the items.