diff options
| author | Rubén Beltrán del Río <ben@nsovocal.com> | 2018-04-23 20:34:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-23 20:34:45 -0500 |
| commit | 764ac76aa90b75cd5d79c217220654a6975069af (patch) | |
| tree | 91b41637435724522020bd665a1e2ea04ecaa1c2 /lib/sumo.js | |
| parent | 6768cd461ec1a8ea87c0f64e1b3c29e36b0b02ed (diff) | |
Fix positioning and lessen friction (#8)
Diffstat (limited to 'lib/sumo.js')
| -rw-r--r-- | lib/sumo.js | 18 |
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); |