From 3100e0533cb89a185ea021dfb83c4f364750180f Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Tue, 29 May 2018 02:34:38 -0500 Subject: 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 --- lib/config.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'lib/config.js') 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]); -- cgit