Flash Multiplayer Virtual Worlds

Build immersive, full-featured interactive worlds for games, online communities, and more

Flash Multiplayer Virtual Worlds

Starting
Makzan

Build immersive, full-featured interactive worlds for games, online communities, and more
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781849690362
Paperback412 pages

About This Book

  • Build virtual worlds in Flash and enhance them with avatars, non player characters, quests, and by adding social network community
  • Design, present, and integrate the quests to the virtual worlds
  • Create a whiteboard that every connected user can draw on
  • A practical guide filled with real-world examples of building virtual worlds

Who This Book Is For

If you are a Flash or an ActionScript developer who wants to build powerful and immersive multiplayer games, this book is for you. This book assumes that you have some experience with ActionScript 3.0.

Table of Contents

Chapter 1: Developing Flash Virtual World
What is a virtual world?
Background
Benefit of using Flash to build virtual world
Connecting players in a virtual world
Socket server
Available socket servers for Flash
Application architecture of a virtual world
The whole picture of virtual worlds
Common features in virtual world
Casual game design versus MMOG
Existing virtual world games
Summary
Chapter 2: Installing the Servers
Comparing SmartFoxServer Lite, Basic, and Pro
Developing and deploying virtual world environment
Installing Java Development Kit
Downloading SmartFoxServer Pro
Installing SmartFoxServer Pro
Running the SmartFoxServer
Using embedded web server and database
Downloading third-party HTTP and database server package
Connecting SmartFoxServer and MySQL server
Configuring the server settings
Configuring MySQL server connection in SmartFoxServer
Running examples
Setting up the administration panel
Logging in to administration panel
Locating the Flash Client API
Summary
Chapter 3: Getting Familiar with SmartFoxServer
Configuring a basic SmartFoxServer
Introducing the events of rooms
Debugging in local machine
Flash Security Sandbox
Creating a Flash document to connect to the server
Creating a cooperative drawing whiteboard
Summary
Chapter 4: Creating Map and Ground in Isometric View
Comparing different game views
Getting an isometric projection view
Making an isometric map
Converting between screen coordination and isometric map coordination
Building a map editor
Summary
Chapter 5: Creating Avatars
Designing an avatar
Customizing your avatar
Summary
Chapter 6: Walking Around the World
Creating the world
Holding states of the player
Moving the avatar
Introducing path finding
Walking by mouse click
Broadcasting where you walked
Scrolling the world
Saving the position for next time
Summary
Chapter 7: Creating Buildings and Environments in the Virtual World
Placing buildings on the map
Ordering the buildings
Designing a big virtual world
Adding sound to the virtual world
Building map editor for buildings
Summary
Chapter 8: Creating an Inventory System
Classifying items in the virtual world
Collecting items
Displaying items in different forms
Defining the data structure of inventory items
Implementing inventory in the SmartFoxServer
Implementing the item panel
Exchanging items with other players
Introducing the economy in virtual world
Summary
Chapter 9: Communicating with Other Players
Communicating using several methods
Chatting with public messages
Implementing the buddy list
Sending private messages
Sharing object data between players
Summary
Chapter 10: Interacting with NPC
Running virtual world smoothly with NPCs
Placing NPC in virtual world
Advanced SmartFoxServer extension technique
Controlling NPC movement
Talking with NPC
Trading with NPC
Summary
Chapter 11: Designing Quests
Introducing quests
Triggering quests
Setting up server environment for quests
Designing the quest panels
Running daemons for quests
Introducing achievement
Completing quests
Rewarding the players when finishing the quests
Extending the quests with mini games
Making the quest system better
Summary
Chapter 12: Social Community
The benefit of using social network features in virtual world
The complicated data flow
Integrating Facebook platform
Authorizing a Facebook account
Getting friends list from Facebook
Update the Facebook status
Sending news feed to Facebook
Reading news feed into the virtual world
Capture a screenshot and share to a Facebook album
Integrating the Twitter platform
Choosing the right social network service
Summary
Chapter 13: Deploying and Maintaining Flash Virtual World
Hosting the virtual world
Scaling up the virtual world
Earning money from the virtual world
Operating the virtual world
Analyzing players actions on a virtual world
Rapid development with OpenSpace
Updating and patching the virtual world
Keeping an eye on the virtual world industry
Putting our virtual world in mobile
Extending the virtual world to other platforms
Summary

What You Will Learn

  • Create a whiteboard that every connected user can draw on
  • Create the map, basic map editor, and ground of the virtual world
  • Optimize graphic workload by selecting the appropriate method to render avatars
  • Move avatars using keyboard or mouse and synchronize their movementsCreate buildings and the environment for the virtual world
  • Create a basic item inventory system for an avatar and implement some basic item management with the server-side extensions
  • Create a basic chat system and a buddy list for your avatar
  • Control the Non-Player Characters to move around the world and interact with the players by chatting or trading items
  • Enhance your virtual worlds by integrating several key features of Facebook and Twitter

 

In Detail

Flash virtual worlds are some of the most exciting—and profitable—online business being built today. Using Flash, developers can build interactive environments where users can interact with the virtual world and one another, compete, and have fun. Creating a playful environment on an electronic network presents unique challenges as you combine a fun, upbeat frontend with some serious and complex server logic.

This handy book assists you in building amazing virtual worlds in no time by implementing ActionScripts in a Flash IDE. With this book in hand, you will build virtual worlds that have avatars walking around and interacting with non playing characters, completing challenging quests, and allowing users to link with real-world friends.

The fun begins with first exploring existing virtual world games such as Club Penguin, Mole, Dofus, and World of Warcraft. We will then design our virtual environment. Then we will create avatars and move the avatars in the virtual world. We will add some triggers to add amusement and life to the virtual world. We will allow the avatars to interact with other players and create a buddy list for each user. Then we will integrate buildings and other environment to the virtual world. We will also let the players interact with non-player characters to complete some tasks. Finally, we move on to add interesting quests to the virtual world, which need to be accomplished by the player to gear up to the next level of the game.

This example-rich, hands-on guide sequentially develops a multiplayer virtual world—the platform, the environment, quests, avatars, non-playing characters, and interaction between them.

Authors

Table of Contents

Chapter 1: Developing Flash Virtual World
What is a virtual world?
Background
Benefit of using Flash to build virtual world
Connecting players in a virtual world
Socket server
Available socket servers for Flash
Application architecture of a virtual world
The whole picture of virtual worlds
Common features in virtual world
Casual game design versus MMOG
Existing virtual world games
Summary
Chapter 2: Installing the Servers
Comparing SmartFoxServer Lite, Basic, and Pro
Developing and deploying virtual world environment
Installing Java Development Kit
Downloading SmartFoxServer Pro
Installing SmartFoxServer Pro
Running the SmartFoxServer
Using embedded web server and database
Downloading third-party HTTP and database server package
Connecting SmartFoxServer and MySQL server
Configuring the server settings
Configuring MySQL server connection in SmartFoxServer
Running examples
Setting up the administration panel
Logging in to administration panel
Locating the Flash Client API
Summary
Chapter 3: Getting Familiar with SmartFoxServer
Configuring a basic SmartFoxServer
Introducing the events of rooms
Debugging in local machine
Flash Security Sandbox
Creating a Flash document to connect to the server
Creating a cooperative drawing whiteboard
Summary
Chapter 4: Creating Map and Ground in Isometric View
Comparing different game views
Getting an isometric projection view
Making an isometric map
Converting between screen coordination and isometric map coordination
Building a map editor
Summary
Chapter 5: Creating Avatars
Designing an avatar
Customizing your avatar
Summary
Chapter 6: Walking Around the World
Creating the world
Holding states of the player
Moving the avatar
Introducing path finding
Walking by mouse click
Broadcasting where you walked
Scrolling the world
Saving the position for next time
Summary
Chapter 7: Creating Buildings and Environments in the Virtual World
Placing buildings on the map
Ordering the buildings
Designing a big virtual world
Adding sound to the virtual world
Building map editor for buildings
Summary
Chapter 8: Creating an Inventory System
Classifying items in the virtual world
Collecting items
Displaying items in different forms
Defining the data structure of inventory items
Implementing inventory in the SmartFoxServer
Implementing the item panel
Exchanging items with other players
Introducing the economy in virtual world
Summary
Chapter 9: Communicating with Other Players
Communicating using several methods
Chatting with public messages
Implementing the buddy list
Sending private messages
Sharing object data between players
Summary
Chapter 10: Interacting with NPC
Running virtual world smoothly with NPCs
Placing NPC in virtual world
Advanced SmartFoxServer extension technique
Controlling NPC movement
Talking with NPC
Trading with NPC
Summary
Chapter 11: Designing Quests
Introducing quests
Triggering quests
Setting up server environment for quests
Designing the quest panels
Running daemons for quests
Introducing achievement
Completing quests
Rewarding the players when finishing the quests
Extending the quests with mini games
Making the quest system better
Summary
Chapter 12: Social Community
The benefit of using social network features in virtual world
The complicated data flow
Integrating Facebook platform
Authorizing a Facebook account
Getting friends list from Facebook
Update the Facebook status
Sending news feed to Facebook
Reading news feed into the virtual world
Capture a screenshot and share to a Facebook album
Integrating the Twitter platform
Choosing the right social network service
Summary
Chapter 13: Deploying and Maintaining Flash Virtual World
Hosting the virtual world
Scaling up the virtual world
Earning money from the virtual world
Operating the virtual world
Analyzing players actions on a virtual world
Rapid development with OpenSpace
Updating and patching the virtual world
Keeping an eye on the virtual world industry
Putting our virtual world in mobile
Extending the virtual world to other platforms
Summary

Book Details

ISBN 139781849690362
Paperback412 pages
Read More

Recommended for You

Flash Game Development by Example
$ 21.60
Flash 10 Multiplayer Game Essentials
$ 26.99
Adobe Flash 11 Stage3D (Molehill) Game Programming Beginner’s Guide
$ 29.99
Flash Development for Android Cookbook
$ 29.99