Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Welcome to Colyseus!

This project has been created using ⚔️ create-colyseus-app - an npm init template for kick starting a Colyseus project in TypeScript.

Documentation

⚔️ Usage

npm start

Structure

  • index.js: main entry point, register an empty room handler and attach @colyseus/monitor
  • src/rooms/MyRoom.js: an empty room handler for you to implement your logic
  • src/rooms/schema/MyRoomState.js: an empty schema used on your room's state.
  • loadtest/example.js: scriptable client for the loadtest tool (see npm run loadtest)
  • package.json:
    • scripts:
      • npm start: runs node index.js
      • npm test: runs mocha test suite
      • npm run loadtest: runs the @colyseus/loadtest tool for testing the connection, using the loadtest/example.js script.
  • tsconfig.json: TypeScript configuration file

License

MIT