Book Image

WebGL Game Development

By : Sumeet Arora
Book Image

WebGL Game Development

By: Sumeet Arora

Overview of this book

<p>WebGL, the web implementation of Open GL, is a JavaScript API used to render interactive 3D graphics within any compatible web browser, without the need for plugins. It helps you create detailed, high-quality graphical 3D objects easily. WebGL elements can be mixed with other HTML elements and composites to create high-quality, interactive, creative, innovative graphical 3D objects.</p> <p>This book begins with collecting coins in Super Mario, killing soldiers in Contra, and then quickly evolves to working out strategies in World of Warcraft. You will be guided through creating animated characters, image processing, and adding effects as part of the web page canvas to the 2D/3D graphics. Pour life into your gaming characters and learn how to create special effects seen in the most powerful 3D games. Each chapter begins by showing you the underlying mathematics and its programmatic implementation, ending with the creation of a complete game scene to build a wonderful virtual world.</p>
Table of Contents (17 chapters)
WebGL Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Node.js and Socket.IO for multiplayer games


Node.js is based on the event-based programming style, where the flow of the application is determined by the events. It is a new generation style of writing a scalable server-side code. Unfortunately, this book is not on Node.js; hence, we would like to completely keep our focus on Node.js-based HTTP servers and Socket.IO. For further reading, you can refer to the following links:

Our focus in this book is to discuss two modules of Node.js: HTTP and Socket.IO.

Implementing the HTTP server using Node.js

Node.js comes with a built-in HTTP module. The following sample code listing explains how to work with a node HTTP server.

Note

We are discussing the node HTTP server because once your game page uses WebSockets, we cannot...