From 764ac76aa90b75cd5d79c217220654a6975069af Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Mon, 23 Apr 2018 20:34:45 -0500 Subject: Fix positioning and lessen friction (#8) --- lib/sumo.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/sumo.js') diff --git a/lib/sumo.js b/lib/sumo.js index eef80d7..4785087 100644 --- a/lib/sumo.js +++ b/lib/sumo.js @@ -260,6 +260,24 @@ internals.Sumo = class Sumo { entityB: harness }); + SumoFactory.createInvisibleBlock(this._engine, { + width: this.horizontalResolution * 2, + height: this.verticalResolution * 0.1, + position: { + x: this.horizontalResolution / 2, + y: -this.verticalResolution * 0.1 + } + }); + + SumoFactory.createInvisibleBlock(this._engine, { + width: this.horizontalResolution * 2, + height: this.verticalResolution * 0.1, + position: { + x: this.horizontalResolution / 2, + y: this.verticalResolution + this.verticalResolution * 0.1 + } + }); + // To keep the coupling behind, we'll manually add the sumos later this._engine.addEntity(sumoA); -- cgit