Chapter 16. The World of Captain Chloride


To get Captain Chloride to do anything interesting, we've got to put him into a world. In games, worlds are generally implemented as levels. And making a level requires creating a file that specifies what objects the level contains. The game must read the file and create all of the objects it specifies. Although this can be a challenging task, LlamaWorks2D provides a class that makes adding levels to your game fairly easy.

This chapter demonstrates the essentials of creating a level. It shows you how to put a character onto a background and scroll the background as the character moves.

Before Captain Chloride can go into a level, we need to make some improvements to him.



Creating Games in C++(c) A Step-by-Step Guide
Creating Games in C++: A Step-by-Step Guide
ISBN: 0735714347
EAN: 2147483647
Year: N/A
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net