更新时间:2021-08-20 16:45:01
封面
版权信息
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. Getting Started with SDL
Why use SDL?
Setting up SDL in Visual C++ Express 2010
Hello SDL
What makes up a game
The Game class
Summary
Chapter 2. Drawing in SDL
Basic SDL drawing
Source and destination rectangles
Installing SDL_image
Tying it into the framework
Chapter 3. Working with Game Objects
Using inheritance
Implementing polymorphism
Using abstract base classes
Should we always use inheritance?
Putting it all together
Chapter 4. Exploring Movement and Input Handling
Setting up game objects for movement
Creating fixed frames per second
Input handling
Chapter 5. Handling Game States
A simple way for switching states
Implementing finite state machines
Implementing menu states
Chapter 6. Data-driven Design
Loading XML files
Implementing Object Factories
Fitting the factory into the framework
Parsing states from an XML file
Loading the menu state from an XML file
Loading other states from an XML file
Chapter 7. Creating and Displaying Tile Maps
What is a tile map?
Getting familiar with the Tiled application
Parsing and drawing a tile map
Scrolling a tile map
Parsing object layers
Chapter 8. Creating Alien Attack
Using the SDL_mixer extension for sound
Setting up the basic game objects
Handling bullets
Dealing with collisions
Possible improvements
Chapter 9. Creating Conan the Caveman
Possible additions
Index