Preface

Back in the late 1970s, digital virtual world and multiuser adventure games, MUDs, made their debut. At the time Internet reached the masses and got popular in 1990s, Massively Multiplayer Online Games, MMOGs, became the new market that every game company was eager to get into. Players download or buy discs to install the online virtual world. The world gives players a virtual personality and they can play and interact with each other to finish tasks.

Being a multimedia and interaction platform, Adobe Flash introduced socket connection support to Flash player. The socket connection allows Flash player to connect persistently to a socket server and provide the opportunity for multiple user Flash applications. In other words, socket connection makes it possible to create a Flash online virtual world.

Compared to the traditional multiplayer online games, Flash online virtual worlds are browser-based and do not need any installation (except the Flash player plugin). They allow players to quickly play the virtual world game just like browsing a web page. The convenience fits the nature of Internet and thus can reach a larger variety of potential players.

Thanks to the quick evolution of socket networking service during these years, Flash online virtual worlds are becoming a trend. Every day users log into social networking sites and play with friends on their virtual farms or virtual towns.

With this book, we will have a step-by-step guide to create our own Flash virtual world from scratch. We will discuss several essential parts of creating a Flash virtual world and integrating it into social networking services. At last, we will have a look on how to deploy and operate our virtual world in production and earn money from it.

What this book covers

Chapter 1, Developing Flash Virtual World, discusses the benefit of developing a Flash virtual world. It also discusses different connection methods between Flash clients and compares different server solutions. You will also get introduced to the common features in a Flash virtual world such as avatar, home, items, quests, non-player characters, and others. You will also know about some existing virtual world games such as Club Penguin, Mole, Dofus, and World of Warcraft.

Chapter 2, Installing The Servers, develops and deploys a virtual world environment. You will also install the Java Development Kit and SmartFoxServer, connect it with MySQL server and configure the server settings. You will then load a simple chat application and set up and log in to the administration panel.

Chapter 3, Getting Familiar with SmartFoxServer, configures a Basic SmartFoxServer and discusses how to set up the Flash player to view the Flash trace log without the Flash IDE. You will also see how we can prevent the Flash loading data or connect sockets to other resources that are not in the same domain of the hosting server by using the Flash player's inbuilt security sandbox. You will also create a Flash document to connect the server and finally, create a whiteboard that every connected user can draw on and test it.

Chapter 4, Creating Map and Ground in Isometric View, compares different game views, create an isometric map, and a ground for the virtual worlds. You will then build a Map Editor, which will be used later for development.

Chapter 5, Creating Avatars, designs an avatar and draws the avatar in Flash. You will then customize your avatar with different styles and colors. You will also design and create a customization panel and finally, integrate it to the SmartFoxServer.

Chapter 6, Walking Around the World, covers the different methods to move the avatar in the virtual world. You will code your first server-side extension and create the connectivity between Flash client and the database.

Chapter 7, Creating Buildings and Environments in the Virtual World, teaches you how to place a building on the Map and order the buildings while displaying them. You will also create a map editor for the buildings.

Chapter 8, Creating an Inventory System, classifies items in the virtual world and also discusses about avatars collecting items. You will also learn about defining the data structure of an inventory item and implementing an inventory and an item panel.

Chapter 9, Communicating with Other Players, discusses the various methods for communicating in the virtual world which includes chatting with public messages. You will also learn how to implement a buddy list, add players to it, and finally send messages to these players. You will also see how we can share items between players.

Chapter 10, Interacting With NPC, shows how we can run a virtual world smoothly by introducing non-player characters. You will place your first NPC and control its movements. You will see the different communication methods available for the NPC and how to trade items with the NPC.

Chapter 11, Designing Quests, introduces quests and how they can be triggered in a virtual world. You will set up server environments for quests and design quest panels. You will also see how you can encourage players to participate in quests by placing rewards and improving the quests.

Chapter 12, Social Community, discusses the benefits of having a social networking feature in your virtual world. This chapter will show you how to integrate with the Facebook and the Twitter platforms.

Chapter 13, Deploying and Maintaining Flash Virtual World, shows how you can host the virtual world and operate the virtual world. You will also see some methods to earn money from virtual world. You will also learn to transfer your virtual world to mobile and other platforms such as Apple iOS and .NET and Unity, among others.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.4.44