Skip to content

Template of multiplayers game using Phaser and Colyseus

Notifications You must be signed in to change notification settings

jbvovau/test-phaser-colyseus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-phaser-colyseus

Simple template project to test "Colyseus" multiplayers server, with Phaser game framework.

Get started

Install and launch server

Download project using git :

git clone https://github.com/jbvovau/test-phaser-colyseus

Move to project

  • cd test-phaser-colyseus

Follow : https://docs.colyseus.io/getting-started/server/

Install Colyseus server using npm :

  • cd server
  • npm install

Then start the server

npx ts-node index.ts

Install and launch client

You can launch client using node "http-server".

npm install http-server

And then run the web server with HTML5 app with "http-server"

The application is available at : http://127.0.0.1:8080

More

The folder server is a modification of colyseus-starter (https://github.com/endel/colyseus-starter). The file poke_room.js contains server side code.

The game code is available in main.ts a file in TypeScript compiled into main.js javascript code.

About

Template of multiplayers game using Phaser and Colyseus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages