Our first task is to load our world. We need a few basic components. First, we need a universe. This universe will contain stars, asteroids, and our space ship. Open up SpaceRacer3D and let's get coding!
Before we get going, we will need to move some code over from our 2D project. Copy the following files and settings from RoboRacer2D to SpaceRacer3D:
Copy
Input.cpp
andInput.h
—we will use these classes to handle user input.Copy
Sprite.cpp
,Sprite.h
,SOIL.h
, andSOIL.lib
—we will use them to support the user interface in the next chapter. You may need to remove the line#include "stdafx.h"
fromSprite.cpp
.Copy
fmodex.dll
—we need this for audio support.Copy the settings from the project
Configuration Properties/C/C++/General/Additional Include Directories
setting—this is necessary to provide access to FMOD library:Copy the settings from the project
Configuration Properties/Linker/Input/ Additional Dependencies
setting—this is necessary to provide access to the...