Deer game is a semestral project for CMSC 135 (Computer Networking) that applies some networking concepts. This was done with the use of Websockets to implement a Multiplayer game with low latency and real time updates for all connected players.
It follows simple game mechanics. Become a deer and fight others to get the most points before the time runs out. Please see Installation section to deploy the game on your own machines, and go to How to play
for the full game mechanics.
Go to root of the project, then
npm i
once finished, follow these
npm run dev
if theres nothing running in port 5173, the game should be on localhost:5173
to host it in a network, instead of npm run dev
, you use
npm run dev -- --host
same for the one above but now, you can access the game if connected to the same network as the machine. you should be able to see 192.168.x.x:5173
<-- this is the link to the game on any devices
separate terminals for server and client
Note: you have to do this everytime you are deploying with a specifc wifi connection. You cannot build this with UP STUDENT wifi and still expect the build to run on UP AP1
npm run build:backend
npm run start:backend
npm run build
if you want to preview the production state of the game.
npm run preview -- --host