Skip to content

Phaser 3.x.x Lance-gg 2.x.x multiplayer test build prototype nodejs babel javascript.

Notifications You must be signed in to change notification settings

Lightnet/project-phaser3-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-phaser3-prototype

License: MIT

Created by: Lightnet

Information:

Simple prototype for running Phaser 3.4.0 on Lance-gg 2.0.5 nodejs multiplayer. Working on project template build.

Porting spaace Pixi.js > Phaser 3.4.0 Frameworks.

Phaser 3.x.x Physics on server will not work since it required browser variables and functions to work. By using simple basic collision 2D on server and client as well to test collision running. Note physics will run on client and server for sync. Read more information on lance-gg for multiplayer.

For more 2D physics features would be using matter.js since it can run client and server side node. Another project link to run Phaser 3.4.0 with matter.js physics 2D.

Project Phaser3 Matter.js

Notes:

  • Some files are from Phaser 3.4.0 and Lance-gg Github Examples for testing.
  • Work in progress.

Browser notes:

  • Chrome Content Security Policy and image tends to break. Express server has to be setup and config right for dev.
  • Firefox work fine.

Packages / Programs:

  • Viusal Studio Code 1.22.1 (IDE)
  • Nodejs 8.11.1 (run server and auto build script with gulp)
  • Phaser 3.4.0 (Note this is typescript and javascript from package npm)
  • Babel 6.26.0 (gulp auto build script for server and browser)
  • Gulp 3.9.1 (auto task build scripts)
  • Lance-gg 2.0.5 (Multiplayer Network for client and server engine or framework design)

Install:

You need to download and install nodejs to get packages files running. As well IDE editor like Visual Studio Code.

Command Line:

 npm install

This will install packages from package.json file.

 gulp default 

This will run auto build development server and refesh files for update changes.

Builds:

npm start

This will start project build from command line or power shell.

Reference Links:

Phaser Assets & Examples:

npm:

  • gulp-sass required node-sass to work.

About

Phaser 3.x.x Lance-gg 2.x.x multiplayer test build prototype nodejs babel javascript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published