7.1. Using Datafiles to Store Game Resources
Learning Objectives
When you have finished section 7.1, you should be able to:
- Describe Allegro datafiles, including their structures, utility tools, and methods.
- Create and use Allegro datafiles.
- Test Allegro datafiles.
- Enhance the Tank War game using Allegro datafiles.
Required Tasks
- Study Chapter 18, Using Datafiles to Store Game Resources, in the eTextbook.
- Study the structure of the Allegro datafile, utility tools, and methods for manipulating Allegro datafiles both inside and outside of game programs.
- Study the TestDat program carefully for how to read bitmaps from an Allegro datafile.
- Go through the steps on pages 643-655, on how to enhance the Tank War game using Allegro datafiles.
- Complete the Chapter 18 quiz, and check your answers in Appendix A.
Files (tankwar_r8, TestDat)
Optional Tasks
- Reload the Tank War game enhanced in Unit 5 into your IDE, and further enhance the game by following the instructions given on pages 643-655 to modify the code.
- Build the project and run the game.