@yantra-core/server

1.0.2 • Public • Published

@yantra-core/server

Mantra Server

see: ./server.js file Additional Documentation can be found here: https://github.com/yantra-core/mantra

// Import Mantra
import { Game } from '@yantra-core/mantra'

// Initializing the Game
const game = new Game({});

// Use Plugins to customize the Game
game
  .use(new MatterPhysics())
  .use(new CollisionPlugin())
  .use(new EntityFactory())
  .use(new EntityInputPlugin())
  .use(new EntityMovementPlugin(new AsteroidsMovement()))
  .use(new BulletPlugin())
  .use(new WebSocketServer());

game.listen(8888);
console.log('WebSocket server started on port 8888');

Docker

docker build . -t mantra && docker run -p 80:80 mantra

Readme

Keywords

none

Package Sidebar

Install

npm i @yantra-core/server

Weekly Downloads

0

Version

1.0.2

License

Copyright Yantra Works 2023

Unpacked Size

4.5 kB

Total Files

4

Last publish

Collaborators

  • admiral-byrd