4.2. Introduction to Sprite Programming
Learning Objectives
When you have finished section 4.2, you should be able to:
- Explain what sprites are.
- Draw regular and scaled sprites.
- Draw flipped sprites.
- Draw rotated and pivoted sprites.
- Further enhance the tank war game.
Required Tasks
- Study Chapter 8, Introduction to Sprite Programming, in the eTextbook.
- Carefully study the routines for manipulating sprites.
- Enhance the Tank War project game by using sprites as detailed in Chapter 8 (download Sprites files from the Files link below).
- Complete the Chapter 8 quiz, and check your answers in Appendix A.
Files (drawsprite, flipsprite, pivotsprite, rotatesprite, scaledsprite, tankwar_r3, transsprite)
Optional Task
- Play with the Tank War game, and carefully study the strategy of the game.
- Write a summary of the game strategy.