]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/sumo.js
Fix positioning and lessen friction (#8)
[rbdr/sumo] / lib / sumo.js
index eef80d759ef547ab807163a7a3b7fa50c403411c..47850871092b3bc5b1d777001ff40098dcba8f49 100644 (file)
@@ -260,6 +260,24 @@ internals.Sumo = class Sumo {
       entityB: harness
     });
 
       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);
     // To keep the coupling behind, we'll manually add the sumos later
 
     this._engine.addEntity(sumoA);