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 ⭐
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.
(Image from https://thomasfuller.codes/pew-pew-pew-io-game/)
- "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"
You will need node
and mongoDB
installed on your computer:
- Download the directory.
- Open the direcory with the
shell
. - Run
npm install
. - Run
node app.js
from ''game'' directory. - Open
http://localhost:8081
from your browser. - Enjoy 😄
Game made by Giuseppe Ricciardi and Helmi Zammali, computer engineer students from University of Parma.
Thanks to Kenney for the copyright-free sprites.