© Yadu Rajiv 2018
Yadu RajivDeveloping Turn-Based Multiplayer Gameshttps://doi.org/10.1007/978-1-4842-3861-5_4

4. An Introduction to Node.js

Yadu Rajiv1 
(1)
Bangalore, Karnataka, India
 

In this chapter we focus on learning the basics of Node.js: what it is, what it can do for us, and how we can start to use it in game development. Node.js is a runtime environment that is used to execute JavaScript code, usually on the server side. It uses Chrome’s V8 JavaScript engine internally, and hence it is well-maintained and extremely fast. Node.js uses an event-driven, non-blocking IO model that makes things fast as well as efficient. In simpler terms, node lets us execute JavaScript on servers, and it uses event-driven models very much like how events work ...

Get Developing Turn-Based Multiplayer Games: with GameMaker Studio 2 and NodeJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.