aboutsummaryrefslogtreecommitdiff
path: root/lib/sumo.js
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2018-04-23 20:34:45 -0500
committerGitHub <noreply@github.com>2018-04-23 20:34:45 -0500
commit764ac76aa90b75cd5d79c217220654a6975069af (patch)
tree91b41637435724522020bd665a1e2ea04ecaa1c2 /lib/sumo.js
parent6768cd461ec1a8ea87c0f64e1b3c29e36b0b02ed (diff)
Fix positioning and lessen friction (#8)
Diffstat (limited to 'lib/sumo.js')
-rw-r--r--lib/sumo.js18
1 files changed, 18 insertions, 0 deletions
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);