Book Image

JMonkeyEngine 3.0 Cookbook

By : Rickard Eden
Book Image

JMonkeyEngine 3.0 Cookbook

By: Rickard Eden

Overview of this book

Table of Contents (17 chapters)
jMonkeyEngine 3.0 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Networking with SpiderMonkey

This chapter will be all about using the networking engine of jMonkeyEngine, SpiderMonkey, to take our games beyond the isolation of our own computers to the Internet. Don't worry if you're not well versed in networking, we'll take it from the very beginning.

This chapter contains the following recipes:

  • Setting up a server and client

  • Handling basic messaging

  • Making a networked game – Battleships

  • Implementing a network code for FPS

  • Loading a level

  • Interpolating between player positions

  • Firing over a network

  • Optimizing the bandwidth and avoiding cheating