O'Reilly logo

Programming the TI-83 Plus/TI-84 Plus by Christopher R. Mitchell

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 6. Advanced input and events

 

This chapter covers
  • Monitoring for events with event loops
  • Getting keypresses directly with getKey
  • Moving characters around the homescreen
  • Building a fun, interactive game with event loops

 

One day, you pick up your calculator, having made yourself several games and programs. You’ve shared them with your friends, and they think you’ve done a good job. You’re frustrated, though, because the games aren’t very interactive. You want something more immersive, where you move a hungry mouse around the screen, trying to collect pieces of cheese. You want to make the game challenging, so you need to add a way to lose: you add a hunger bar. You decide that the hunger bar will gradually fill and that the player ...

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