Typescript project based on matter.ts, used webpack, GamePlay based on canvas2D. Multiplayer real time for platformer gameplay. Video chat webRTC supported by node.js signalling. MongoDB used for account session. Node.js for server part. Powerfull ! ®zlatnaspirala
MIT License
Published by zlatnaspirala over 2 years ago
Added free service mongodb.net ->
// enum : 'dev', 'prod', `mongodb.net` or `mongodb.net-dev`
this.serverMode = "mongodb.net-dev";
Setup dev
when you wanna run all it in localhost.
Setup mongodb.net
when you use public production server but you wanna use mongodb.net
Setup prod
When you use your own mongod on your public production server.
Setup mongodb.net-dev
if you wanna use localhost env but you wanna use mongodb.net free service.
This is fix for always pain switching between different env's.
this.databaseRoot = {
dev: "mongodb://localhost:27017" ,
prod: "mongodb://userAdmin:*************@localhost:27017/admin",
freeService: "mongodb+srv://userAdmin:**********@cluster0.piqav.mongodb.net/masterdatabase?retryWrites=true&w=majority"
};
0.6.21 -> Added record-canvas npm module, game play can be recorded to the mp4 format and with no action download after rec interval ends.
0.6.20 -> Added Sound:On/Off feature
0.6.19 -> Adding Sound class to the ioc controller, help for generate self-singed cert
0.6.18 -> Added free service mongodb.net new optimal option for choosing database
0.6.16 -> added background audio and jump effect for single player
0.6.15 -> UPDATE Broadcaster , added webcam access local without networking hot fix . Added local-stream-loaded dispatch event trigger.
etc...
Published by zlatnaspirala over 4 years ago
Published by zlatnaspirala almost 5 years ago
New features :
"dev-all": "webpack --config webpack.config.multicompile.js",
Point of Multi entries is to make independent healthy builds end point
for our application. Current export's for 2 solutions looks like
(runs webpack.multicompile.config.js) :
Command:
npm run dev-all
Output:
Load auto generated maps from python3 tool creator-2dmap
New folder for ioc.ts
files named controllers/
.
Helps to build clear end point of project code.
Add single player application instance like option (resource independent - no shared assets) .
Remove npm from dependency to devDependency.