diff options
| author | Rubén Beltrán del Río <ben@nsovocal.com> | 2018-05-29 00:29:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-29 00:29:27 -0500 |
| commit | 43413defcb854c8706a84a6a54a61c7977b52614 (patch) | |
| tree | 815be23b2a4bccc9362ea1b63a2ee8f02361e848 /lib/sumo.js | |
| parent | 1676911c8a2621274bf75ff7271faa926cf58d6c (diff) | |
Add gamepad support (#10)
* Update docs
* Add gamepad support
* Remove console logs
* Add factories for controllables
* Add both controllables
* Add gamepad support to changelog
Diffstat (limited to 'lib/sumo.js')
| -rw-r--r-- | lib/sumo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sumo.js b/lib/sumo.js index d39c055..cdf8cc6 100644 --- a/lib/sumo.js +++ b/lib/sumo.js @@ -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 } }); - const sumoB = SumoFactory.createControllableSumo(null, { + const sumoB = SumoFactory.createPlayer2Sumo(null, { position: { x: this.horizontalResolution / 2 + 100, y: this.verticalResolution / 2 |