Skip to content

asier-ochoa/lightcyleio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •