]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/sumo.js
Add gamepad support (#10)
[rbdr/sumo] / lib / sumo.js
index d39c055eaece84e07eed6ee579437ca0375bdcbf..cdf8cc65bdb73e98e8d70ad659dd9756178bc7b0 100644 (file)
@@ -237,14 +237,14 @@ internals.Sumo = class Sumo {
       }
     });
 
       }
     });
 
-    const sumoA = SumoFactory.createSumo(null, {
+    const sumoA = SumoFactory.createPlayer1Sumo(null, {
       position: {
         x: this.horizontalResolution / 2 - 100,
         y: this.verticalResolution / 2
       }
     });
 
       position: {
         x: this.horizontalResolution / 2 - 100,
         y: this.verticalResolution / 2
       }
     });
 
-    const sumoB = SumoFactory.createControllableSumo(null, {
+    const sumoB = SumoFactory.createPlayer2Sumo(null, {
       position: {
         x: this.horizontalResolution / 2 + 100,
         y: this.verticalResolution / 2
       position: {
         x: this.horizontalResolution / 2 + 100,
         y: this.verticalResolution / 2