HTML and CSS Reference
In-Depth Information
games, the extension contains much of the game logic, relying on the clients for displaying
and gathering user input.
At the very minimum, an extension contains what is known as a plug-in . A plug-in is a code
module written in ActionScript 1 (basically JavaScript) or Java that can be instantiated and
scopedtoaroom.Forexample,ifyouweremakingacardgame,youwouldwantacardgame
plug-inontheservertohandlethingslikeshufflingthedeckandmakingsurethecorrectplay-
er wins a hand. In this way, the server holds the true state of the game. Using an extension
helps keep a game flowing and lessens the users' ability to cheat. For the simple examples in
this chapter, we will not be using any server-side extensions. However, if you delve further
into ElectroServer or other socket-server applications, you should make sure to learn as much
as possible about them.
Search WWH ::




Custom Search