Game Development Reference
In-Depth Information
Summary
In this chapter, we got Visual Studio and SlimDX set up and ready to go. We created a
projecttoworkinandbuiltthebeginningsofourlittle framework. Itconsistsonlyofour
GameWindow
class for now, which creates a game window for us to draw our game
on. We gave our
GameWindow
class a constructor and also covered the
GameLoop
function. We gave it
UpdateScene()
and
RenderScene()
methods for updating
and drawing our game world at each frame. We also covered interfaces, specifically
the
IDisposable
interface, and gave the game window a
ToggleFullscreen()
method. And finally, we tested our game window and saw it in action for the first time.
In the next chapter, we will dive into user input and how to respond to the player's
actions.