An app that allows you to play html games with your friends!
Read the Whole Readme if you wish to contribute!
Built with:
-Vite
-Javascript
-Express
-Redis
-Websockets
-WebRTC(Peer.js) \
git clone
client
cd client/ npm install
npm run dev
server
cd server/ npm install
npm run start
redis
Install redis to your computer if you haven't already and redis-cli
sudo systemctl start redis
-
Create your feature branch (
git checkout -b feature/fooBar
) -
Commit your changes (
git commit -am 'Add some fooBar'
) -
Push to the branch (
git push origin feature/fooBar
) -
Create a new Pull Request
-
Understanding the Game Base Class Structure for making new games:
All games made for Jitsi Games must be built off of the 'Game' class. The Game class provides a framework for managing game state and synchronizing it with other players using WebSocket. It includes essential methods that your new game will inherit:initializeGameState(): Sets up the initial game state for your specific game. saveGameState(partialState): Sends updates of the game state over WebSocket. mergePartialState(partialState): Receives and merges incoming game state updates from other players, keeping clients synchronized. handleRestartGame(): Resets the game state to its initial configuration and broadcasts the reset.