1- Making Multiplayer HTML5 Game: Setup & Sending Files. NodeJs Tutorial Guide

ScriptersWar · 250K views · 2016 · 14:28

Open on YouTube

Web developmentIndie game developmentGame programming & enginestutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they were following when they ask beginner questions about getting Node.js, Express and Socket.io running for a multiplayer game.

Recommended by 2 people across 2 different months, 2016 to 2019.

What it is

The first episode of a tutorial series on building a multiplayer HTML5 game with Node.js, presented by the ScriptersWar channel. It covers installing Node.js and an editor, installing express and socket.io, the project folder structure, and setting up a first server that sends files to the browser.

What people said

Recommends J Doe · 2016-08 · Stack Overflow · on “I am new to Node js; and am having trouble using starting using it”

I am following this tutorial [this video] which has lead me to download node.js from the website; honestly I am confused about how I download what I need to make a online game like in the video .

Recommends xRegency · 2019-10 · Stack Overflow · on “How to test Socket.io and Express on a DOMAIN”

I do not know what env is, also I just tried editing it to see if it does anything. I have no idea how it works on localhost or what it does and used this tutorial to do this, [this video]

Cites Xenorosth · 2017-05 · Stack Overflow · on “Why is localhost:2000 working, but not any directory behind it?”

I am new to node.js and was following the code given in this tutorial given at the time 11:33 in order to get the code below. Can someone explain why the error is occurring and how to fix it? Currently, when I try to access localhost:2000 it works. However, attempting to access [LINK] resulted in this error. Cannot GET /client/img/bob.img Current directory formatting is also specified by the video at 2:35 Tutorial: [this video] var express = require("express"); var app = express(); var serv = require("http").Server(app); app.get('/',function(req, res){ res.sendFile(__dirname + "/client/index.html") app.use("/client", express.static(__dirname + "/client/index.html")); serv.listen(2000);