Skip to content

songday/simple-network-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-network-games

How to start?

Rust Backend

  1. Download Here
  2. Double click
  3. Open a browser and visit http://localhost:3000
  4. Have fun

Java Backend

  1. Run GameApplication.java Java standalone backend will available later
  2. Open frontend/html/lobby.html in any browser (Supports Firefox, Chrome, Microsoft Edge) and create a game room by clicking Create a new room button
  3. Open frontend/html/lobby.html in any other type of browser, not the same as above one or in Private mode
  4. Have fun

Games List

Currently working on:

  1. Draw and guess
  2. Snake

Planing:

  1. Rock Paper Scissors (Sometimes this solves arguments)
  2. Chat room
  3. P2P Security chat (based on Signal protocol)
  4. Video conference room
  5. Mine sweeper
  6. Tetris

Just need a backend (without games frontend)? Sure!

Function Rust backend Java Backend
Create a new room 1. Connect to ws://localhost:3000/room/unknown?roomType=UNKONWN&roomName=&player=&capacity=<player amount, should greater than 1>&extraData= 1. Connect to ws://localhost:3000 2. After connected, send: {"":}
Join a room 1. Connect to ws://localhost:3000?roomId=&player=