aboutsummaryrefslogtreecommitdiff
path: root/lib/config.js
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2018-05-29 02:34:38 -0500
committerGitHub <noreply@github.com>2018-05-29 02:34:38 -0500
commit3100e0533cb89a185ea021dfb83c4f364750180f (patch)
treea957c7efc0b1d1e5f1ddafd69e2bfd39c70b50df /lib/config.js
parent43413defcb854c8706a84a6a54a61c7977b52614 (diff)
Add Naive Game Rules (#11)
* Add components for tracking points * Add methods to create new entities * Adds nodes for points * Add system to detect points * Adds system to detect a winner * Add system to render points and winner * Add points required to win to config * Add it all to the engine * Add mention of points to changelog
Diffstat (limited to 'lib/config.js')
-rw-r--r--lib/config.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/config.js b/lib/config.js
index 856fc18..c39fedf 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -28,14 +28,22 @@ const config = {
* @property {number} verticalResolution
* @memberof Config
*/
- verticalResolution: 224
+ verticalResolution: 224,
+
+ /**
+ * The points needed to win
+ *
+ * @property {number} maxPoints
+ * @memberof Config
+ */
+ maxPoints: 200
};
/**
- * How many pixels to use per meter
+ * The horizontal resolution of the screen
*
- * @property {number} meterSize
+ * @property {number} horizontalResolution
* @memberof Config
*/
config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]);