An understanding of JavaScript and NodeJS will be helpful, but this is a simple implementation showing simple characteristics of the technologies so this makes for a great beginning to understanding multiplayer gameplay. This project provides a template for chat communication and gameplay with socket rooms (of strictly 2 people, the number of people is editable).
Installed NPM and NodeJS
cd <Your Chosen Directory>
git clone https://github.com/thomas-gg/SocketIOSpaceInvaders.git
npm install (to install express and other dependencies)
npm run dev
OR
node index
In order to begin the game you must have two clients connected. One way to do this is to have two Chrome windows open and both connect to the same room id (which can be any word you choose). If you have a mobile device which has chrome and is connected to the same wifi as what is running localhost, then you can connect to the game as well by typing "<your ipaddress>:3000"
- Thomas Garry GitHub
