Class: HorizontalArranger

plugins/screens. HorizontalArranger

This class arranges the screens of the every player horizontally. Player with lower playerNumbers will be farer left.

new HorizontalArranger(session)

Parameters:
Name Type Description
session module:shared/session~Session session instance whose player you want to be arranged.
Source:
Examples
--------    ------------
|      |----|          |
|  p1  | p2 |    p3    |
|      |----|          |
--------    ------------
var arranger = new multiModule.screens.HorizontalArranger(session);
var firstPlayer = session.getPlayerByNumber(0);
console.log(firstPlayer.screen.x);
console.log(firstPlayer.screen.y);
console.log(firstPlayer.screen.width);
console.log(firstPlayer.screen.height);

Mixes In