Skip to content

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightcycle

To install dependencies:

bun install

To run:

bun run main.js

This repo is divided into 2 parts: the frontend and backend server. The backend server is separated into 2 processes:

  • Server logic which deals with game logic, api and session management.
  • Frontend serving which deals with serving react javascript and html,

Game session connection workflow

This describes the steps backend takes to establish a connection from a new player

  • Received get request to /api/connect
  • Establish websocket connection with client by storing in connections array in ws.ts
  • Send new_player message kind to worker
  • Worker returns new_player_id message
  • Player id gets sent back to client

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages