Skip to content

Test matrix-engine usage with npm service. Install with `npm i matrix-engine`. Also templates for slot , anatomy and FPShooter example.

License

Notifications You must be signed in to change notification settings

zlatnaspirala/matrix-engine-starter

Repository files navigation

matrix-engine-starter

Objective

  • Real matrix-engine projects help examples.
  • Test matrix-engine usage with npm service (npm i matrix-engine).

I have single package.json file for client and server staff. Compiled lib destionation is folder ./builds.

Prerequirement

npm install -g browserify

Install with:

npm i

Watch build with:

  npm run examples
  npm run app
  npm run slot
  npm run roulette

Build your Application script bundle with:

  npm run build.examples
  npm run build.app
  npm run build.slot
  npm run build.roulette

And navigate to app.html, examples.html etc.

Projects

Matrix Roulette - 3d physics roulette

In projects\matrix-roulette First time is used inject if gameplay logic intro broadcaster(matrix-networks) Networking is based for now only on websocket tech.

  • Video chat P2P/webRTC
  • Data channels - matrix-roulette server part

If you wanna run server part best way is to navigate to the folder projects\matrix-roulette\scripts\server And then from server folder run Node.js file:

node roulette

For windows users:

matrix-network.bat

For Linux/Mac users:

matrix-network.sh

Url parameters:

 +-----------------------------------------------------------------------------------+
 |-----------------------------------------------------------------------------------+
 ||       URLParameter          value          Description                           |
 +-----------------------------------------------------------------------------------+
 |                                                                                   |
 |        ?server=              giveResults    You need to run server:               |
 |                                             ./scripts/server/node roulette.js     |
 |                                             Win will be calculated by server      |
 |                                             return value.No wheel view for now.   |
 |                                                                                   |
 |                              manual         Server is used for video chat etc not |
 |                                             gameplay results.Wheel view is called |
 |                                                              on SPIN procedure.   |
 |                                                                                   |
 |                              initator       Only initator play rela physics other |
 |                                             playes get results from initator.     |
 |                                             UNDERCOSTRUCT                         |
 |                                                                                   |
 |        &sounds=              true           Sounds are active only if url param   |
 |                                             is true.                              |
 |                                                                                   |
 |        &cameraSpeed=         Number         Best range values from 0.5 to 1       |
 |                                                                                   |
 |        &nui=                 Boolean        Use NUICommander or not.              |
 |                                                                                   |
 +-----------------------------------------------------------------------------------+

Notes

table bet view

matrix-slot

Wheel view

matrix-slot

Web-Anatomy underconstructing

matrix-anatomy Implemented skeletal system ~ 20mb data

Slot-Mashine underconstructing

Demo links for engine:

Demo from this repo [matrix-engine-starter]

Standard Matrix engine apps/examples:

Engine source link:

https://github.com/zlatnaspirala/matrix-engine

Credits

Licence

Projects folder projects/ under licence: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 All other folders are under Mit licence.