Multiplayer Javascript game made with Node.js
- At least 2 players need to connect to the game to start
- Press the space key to begin the game
- Using the WASD or arrow keys, move your snake around the map
- Avoid dying by not hitting the walls or other players in the game
- You gets points for the longer you survive (1 point for every player you outlive)
- Your length gets longer over time to increase the difficulty
- Winner has the most points by the end of the game, good luck!
This game uses HTML, CSS and Javascript - it is hosted on Heroku using Node.js as the backend and the graphics were created using p5.js.
This was a small project I did to learn Node.js and to practice using HTML, CSS and Javascript.
It gave me an introduction to programming projects on a larger scale across multiple files as well as how to structure my code so that it is more easily maintainable.
I also learnt more about back-end web development which allowed me to host web servers remotely so that they can be accessed by anyone.
The graphics are very minimal as most of my time was spent learning how to host the game on a server. If I had more time I would try and improve the graphics and implement more realistic sprites to make the game more engaging.
The game also lags when multiple people join - this is probably due to the fact that my server script can't handle many requests at once. To improve I would spend more time looking into how to optimise the server code so that it can better handle multiple players.
Overall, this was a very fun game to make and I learnt many new skills. I am moving on to learn more front-end web development using React and hopefully I can combine these 2 skills in the future to improve this project in the future.