mirror of https://github.com/espruino/BangleApps
decreased vibration time, decreased accel requirement
parent
1499a524d9
commit
3001618e0f
|
@ -10,3 +10,4 @@
|
|||
1.08: still trying to fix the lack of vibrations
|
||||
1.09: hopefully now it's fixed?
|
||||
1.10: not having web bluetooth to debug is a PAIN
|
||||
1.11: decreased vibration time, decreased accel requirement
|
||||
|
|
|
@ -84,7 +84,7 @@ function touchHandler (button, xy) {
|
|||
|
||||
function accelHandler (xyz) {
|
||||
|
||||
if (xyz.diff >= 0.4) {
|
||||
if (xyz.diff >= 0.3) {
|
||||
|
||||
menu = false;
|
||||
rollDice();
|
||||
|
@ -126,12 +126,7 @@ function rollDice() {
|
|||
}
|
||||
}
|
||||
|
||||
Bangle.on ('accel', voidFn);
|
||||
console.log ("before");
|
||||
Bangle.buzz().then(()=>{
|
||||
Bangle.on ('accel', accelHandler);
|
||||
});
|
||||
console.log ("after");
|
||||
vibrate();
|
||||
}
|
||||
|
||||
function random (max) {
|
||||
|
@ -142,9 +137,8 @@ function random (max) {
|
|||
function vibrate() {
|
||||
|
||||
Bangle.on ('accel', voidFn);
|
||||
Bangle.buzz().then ((value) => {
|
||||
Bangle.buzz(50, 1).then ((value) => {
|
||||
|
||||
console.log ("I ran.");
|
||||
Bangle.on ('accel', accelHandler);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ "id": "multidice",
|
||||
"name": "multiple dice roller",
|
||||
"shortName":"multidice",
|
||||
"version":"1.10",
|
||||
"version":"1.11",
|
||||
"description": "roll anywhere from 1-8 dice at the same time",
|
||||
"icon": "app.png",
|
||||
"tags": "tool,game",
|
||||
|
|
Loading…
Reference in New Issue