Skip to content

Top down shooter multiplayer with client-server architecture, written in node,js,html,css

Notifications You must be signed in to change notification settings

GRicciardi00/counter-strike-unipr-offensive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counter strike: UNIPR offensive

The idea comes from the passion of both of us for the well-known game Counter Strike Global Offensive and the full sharing of the thought by the French poet Anatole France:

''you only learn by having fun''

The game is written with Javascript, Node, HTML, CSS.
You can try the game here ! -> https://un1proffensiv3.herokuapp.com/ (we hosted on free plan server so it can't manage many players)
⭐ Give us a star to the project if you enjoyed it ⭐ gameplay screenshot classifica

Game Architecture

The game use a client-authoritative server architecture, the communication occurs by socket with socket.io library, the client manages the player's inputs and sends them to the server which uses to manage the game logic. The game logic is made with Phaser library, the users and scores are stored into a MongoDB Database.
architecture
(Image from https://thomasfuller.codes/pew-pew-pew-io-game/)

Libraries and framework

  • "bcrypt": "^5.0.1",
  • "body-parser": "^1.20.0",
  • "canvas": "^2.9.3",
  • "cookie-parser": "^1.4.6",
  • "datauri": "^4.1.0",
  • "dotenv": "^16.0.1",
  • "express": "^4.18.1",
  • "jdom": "^3.2.5",
  • "jsdom": "^20.0.0",
  • "jsonwebtoken": "^8.5.1",
  • "mongoose": "^6.5.0",
  • "passport": "^0.6.0",
  • "passport-jwt": "^4.0.0",
  • "passport-local": "^1.0.0",
  • "phaser": "^3.55.2",
  • "socket.io": "^4.5.1"

How to run the code locally

You will need node and mongoDB installed on your computer:

  1. Download the directory.
  2. Open the direcory with the shell.
  3. Run npm install.
  4. Run node app.js from ''game'' directory.
  5. Open http://localhost:8081 from your browser.
  6. Enjoy 😄

Credits

Game made by Giuseppe Ricciardi and Helmi Zammali, computer engineer students from University of Parma.
Thanks to Kenney for the copyright-free sprites.

About

Top down shooter multiplayer with client-server architecture, written in node,js,html,css

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published