Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
reduce bus capacity, fix setClientMode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jun 19, 2019
1 parent 1fca355 commit cfce5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AFRAME.registerState({
game: {
detectionRadius: 2,
bus1Peeps: 0,
bus1Capacity: 10,
bus1Capacity: 5,
stop1Peeps: 10,
stop2Peeps: 0,
menu: 'main'
Expand Down Expand Up @@ -59,16 +59,16 @@ AFRAME.registerState({
state.layout.rotationY -= 1;
},
increaseLayoutPositionY: function (state, action) {
state.layout.positionY += 0.001;
state.layout.positionY += 0.01;
},
decreaseLayoutPositionY: function (state, action) {
state.layout.positionY -= 0.001;
state.layout.positionY -= 0.01;
},
setServerMode: function (state, action) {
state.thisDevice.mode = 'server';
},
setClientMode: function (state, action) {
state.thisDevice.mode = 'server';
state.thisDevice.mode = 'client';
},
},
computeState: function (newState, payload) {
Expand Down

0 comments on commit cfce5e0

Please sign in to comment.