Moving Right Along


You should have a fairly simple game now. I'll be the first to admit that there is not much to do within the game, but then that wasn't the point, really. By stripping down to a bare-bones code set, we get a clearer picture of what takes place in our script modules.

By typing in the code presented in this chapter, you should have added the following files in your emaga4 folder:

  • C:\emaga4\main.cs

  • C:\emaga4\control\main.cs

  • C:\emaga4\control\client.cs

  • C:\emaga4\control\server.cs

  • C:\emaga4\control\initialize.cs

  • C:\emaga4\control\player.cs

The program you have will serve as a fine skeleton program upon which you can build your game in the manner that you want.

By creating it, you've seen how the responsibilities of the client and server portions of the game are divvied out.

You've also learned that your player's avatar needs to have a programmatic representation in the game that describes the characteristics of the avatar, and how it does things.

In the next chapter we will expand the game by adding game play code on both the client and the server sides.




3D Game Programming All in One
3D Game Programming All in One (Course Technology PTR Game Development Series)
ISBN: 159200136X
EAN: 2147483647
Year: 2006
Pages: 197

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