Module: constants

This is where the we keep constants. Do not add minor things in here.

Source:

Members

(static) accessTokenExpireDays

Access token is the token that allows doing character customization. This token expires after 60 DAYS; not very soon.

Source:

(static) animationLayer_Z_Index

Z-index of the animation layer. We need this since we would like to show some things over the animation layer. To elaborate:

  • layer#0: has things like eyes, mouth
  • animation layer: has things like moving foot, moving weapon
  • layer#1: has things like hat

Reason is, we want to show things in layer#1 on top of the weapons.

This z-index is used to determine whether objects are in layer#0 or layer#1. e.g. mouth has a z-index of 200 and hat has a z-index of 20000.

Source:

(static) envVarKeys

These are the names of the environment variables that are used.

Source:
See:

(static) facebookAPIVersion

What version of Facebook API do we use?

Source:

(static) gameTokenExpireSeconds

Game token is the token that allows verification of identity. This token expires after 30 SECONDS; it should be used immediately.

Source:

(static) jwtAlgorithm

Algorithm to use when signing JWT tokens. We use a complex signing algorithm.

Source:

(static) listenHost

Host to bind to. It is ok to listen this ip always because using 0.0.0.0 means binding to all IPs. We're gonna have a firewall anyway to filter access.

Source:

(static) listenPort

Port to listen to. Let's use a hardcoded port value. Target environment should be fine with it.

Source:

(static) maskHeight

Height of character customization masks (generated PNG images).

Source:

(static) maskWidth

Width of character customization masks (generated PNG images).

Source: