mirror of https://github.com/espruino/BangleApps
commit
1f2179535a
|
@ -144,7 +144,7 @@
|
||||||
],
|
],
|
||||||
"no-constant-condition": "off",
|
"no-constant-condition": "off",
|
||||||
"no-delete-var": "off",
|
"no-delete-var": "off",
|
||||||
"no-empty": "off",
|
"no-empty": ["warn", { "allowEmptyCatch": true }],
|
||||||
"no-global-assign": "off",
|
"no-global-assign": "off",
|
||||||
"no-inner-declarations": "off",
|
"no-inner-declarations": "off",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
|
|
|
@ -104,7 +104,6 @@ Bangle.on('lcdPower',on=>{
|
||||||
if (on) {
|
if (on) {
|
||||||
secondInterval = setInterval(draw, 1000);
|
secondInterval = setInterval(draw, 1000);
|
||||||
draw(); // draw immediately
|
draw(); // draw immediately
|
||||||
}else{
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Bangle.on('lock',on=>{
|
Bangle.on('lock',on=>{
|
||||||
|
|
|
@ -6,3 +6,4 @@
|
||||||
0.06: Formatting
|
0.06: Formatting
|
||||||
0.07: Added potato GLaDOS and quote functionality when you tap her
|
0.07: Added potato GLaDOS and quote functionality when you tap her
|
||||||
0.08: Fixed drawing issues with the quotes and added more
|
0.08: Fixed drawing issues with the quotes and added more
|
||||||
|
0.09: Minor code improvements
|
||||||
|
|
|
@ -270,8 +270,7 @@ function queueDraw() {
|
||||||
|
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
if (pause){}
|
if (!pause){
|
||||||
else{
|
|
||||||
// get date
|
// get date
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var da = d.toString().split(" ");
|
var da = d.toString().split(" ");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "aptsciclk",
|
"id": "aptsciclk",
|
||||||
"name": "Apeture Science Clock",
|
"name": "Apeture Science Clock",
|
||||||
"shortName":"AptSci Clock",
|
"shortName":"AptSci Clock",
|
||||||
"version": "0.08",
|
"version": "0.09",
|
||||||
"description": "A clock based on the portal series",
|
"description": "A clock based on the portal series",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [{"url":"screenshot.png"}],
|
"screenshots": [{"url":"screenshot.png"}],
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: Car Crazy is now avialable for testing in beta!
|
0.01: Car Crazy is now avialable for testing in beta!
|
||||||
0.02: 10 Levels are now added making the game harder as it goes along. Some of the levels include multiple cars and faster cars. More levels coming soon.
|
0.02: 10 Levels are now added making the game harder as it goes along. Some of the levels include multiple cars and faster cars. More levels coming soon.
|
||||||
0.03: Settings are now added so that you can reset your high score.
|
0.03: Settings are now added so that you can reset your high score.
|
||||||
|
0.04: Minor code improvements.
|
||||||
|
|
|
@ -66,10 +66,8 @@ function moveEnemyPosition(){
|
||||||
enemyPositonCenterX2 = 120;
|
enemyPositonCenterX2 = 120;
|
||||||
}else if((randomRoadPositionIndicator2 == 3)){
|
}else if((randomRoadPositionIndicator2 == 3)){
|
||||||
enemyPositonCenterX2 = 155;
|
enemyPositonCenterX2 = 155;
|
||||||
}else if(level == 7||level == 8){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
} // TODO: else if(level == 7)
|
||||||
}
|
}
|
||||||
|
|
||||||
function collision(){
|
function collision(){
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "carcrazy",
|
"id": "carcrazy",
|
||||||
"name": "Car Crazy",
|
"name": "Car Crazy",
|
||||||
"shortName": "Car Crazy",
|
"shortName": "Car Crazy",
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"description": "A simple car game where you try to avoid the other cars by tilting your wrist left and right. Hold down button 2 to start.",
|
"description": "A simple car game where you try to avoid the other cars by tilting your wrist left and right. Hold down button 2 to start.",
|
||||||
"icon": "carcrash.png",
|
"icon": "carcrash.png",
|
||||||
"tags": "game",
|
"tags": "game",
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
0.05: extraneous comments and code removed
|
0.05: extraneous comments and code removed
|
||||||
display improved
|
display improved
|
||||||
now supports Adjust Clock widget, if installed
|
now supports Adjust Clock widget, if installed
|
||||||
|
0.06: minor code improvements
|
||||||
|
|
|
@ -223,9 +223,8 @@ function fixTime() {
|
||||||
Bangle.on("GPS",function cb(g) {
|
Bangle.on("GPS",function cb(g) {
|
||||||
Bangle.setGPSPower(0,"time");
|
Bangle.setGPSPower(0,"time");
|
||||||
Bangle.removeListener("GPS",cb);
|
Bangle.removeListener("GPS",cb);
|
||||||
if (!g.time || (g.time.getFullYear()<2000) ||
|
if (g.time && (g.time.getFullYear()>=2000) &&
|
||||||
(g.time.getFullYear()>2200)) {
|
(g.time.getFullYear()<=2200)) {
|
||||||
} else {
|
|
||||||
// We have a GPS time. Set time
|
// We have a GPS time. Set time
|
||||||
setTime(g.time.getTime()/1000);
|
setTime(g.time.getTime()/1000);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "doztime",
|
"id": "doztime",
|
||||||
"name": "Dozenal Digital Time",
|
"name": "Dozenal Digital Time",
|
||||||
"shortName": "Dozenal Digital",
|
"shortName": "Dozenal Digital",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "A dozenal Holocene calendar and dozenal diurnal digital clock",
|
"description": "A dozenal Holocene calendar and dozenal diurnal digital clock",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -8,3 +8,4 @@
|
||||||
0.08: Handling exceptions
|
0.08: Handling exceptions
|
||||||
0.09: Add option for showing battery high mark
|
0.09: Add option for showing battery high mark
|
||||||
0.10: Fix background color
|
0.10: Fix background color
|
||||||
|
0.11: Minor code improvements
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "A Battery Widget (with percentage) - Hanks Mod",
|
"name": "A Battery Widget (with percentage) - Hanks Mod",
|
||||||
"shortName":"H Battery Widget",
|
"shortName":"H Battery Widget",
|
||||||
"icon": "widget.png",
|
"icon": "widget.png",
|
||||||
"version":"0.10",
|
"version":"0.11",
|
||||||
"type": "widget",
|
"type": "widget",
|
||||||
"supports": ["BANGLEJS", "BANGLEJS2"],
|
"supports": ["BANGLEJS", "BANGLEJS2"],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
var s = width - 1;
|
var s = width - 1;
|
||||||
var x = this.x;
|
var x = this.x;
|
||||||
var y = this.y;
|
var y = this.y;
|
||||||
if ((typeof x === 'undefined') || (typeof y === 'undefined')) {
|
if (x !== undefined && y !== undefined) {
|
||||||
} else {
|
|
||||||
g.setBgColor(COLORS.white);
|
g.setBgColor(COLORS.white);
|
||||||
g.clearRect(old_x, old_y, old_x + width, old_y + height);
|
g.clearRect(old_x, old_y, old_x + width, old_y + height);
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ function novaOpenEyes(speed, white, animation) {
|
||||||
scale: 2.2
|
scale: 2.2
|
||||||
});
|
});
|
||||||
}, speed * 5);
|
}, speed * 5);
|
||||||
} else {}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
g.drawImage(novaEyesStage4(), -10, -10, {
|
g.drawImage(novaEyesStage4(), -10, -10, {
|
||||||
|
@ -126,7 +126,7 @@ function novaOpenEyes(speed, white, animation) {
|
||||||
});
|
});
|
||||||
open = true;
|
open = true;
|
||||||
}, speed * 5);
|
}, speed * 5);
|
||||||
} else {}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ function novaCloseEyes(speed, white, animation) {
|
||||||
g.drawImage(novaEyesStage0(), -10, -10, {
|
g.drawImage(novaEyesStage0(), -10, -10, {
|
||||||
scale: 2.2
|
scale: 2.2
|
||||||
});
|
});
|
||||||
} else {}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
g.drawImage(novaEyesStage1(), -10, -10, {
|
g.drawImage(novaEyesStage1(), -10, -10, {
|
||||||
scale: 2.2
|
scale: 2.2
|
||||||
|
@ -164,7 +164,7 @@ function novaCloseEyes(speed, white, animation) {
|
||||||
g.drawImage(novaEyesWhiteStage0(), -10, -10, {
|
g.drawImage(novaEyesWhiteStage0(), -10, -10, {
|
||||||
scale: 2.2
|
scale: 2.2
|
||||||
});
|
});
|
||||||
} else {}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
timedraw(true);
|
timedraw(true);
|
||||||
g.drawImage(novaEyesTransStage1(), -10, -10, {
|
g.drawImage(novaEyesTransStage1(), -10, -10, {
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
0.04: Update cards to draw rounded on newer firmware. Make sure in-game menu can't be pulled up during end of game.
|
0.04: Update cards to draw rounded on newer firmware. Make sure in-game menu can't be pulled up during end of game.
|
||||||
0.05: add confirmation prompt to new game to prevent fat fingering new game during existing one.
|
0.05: add confirmation prompt to new game to prevent fat fingering new game during existing one.
|
||||||
0.06: fix AI logic typo and add prompt to show what AI played each turn.
|
0.06: fix AI logic typo and add prompt to show what AI played each turn.
|
||||||
|
0.07: Minor code improvements.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "Red 7 Card Game",
|
"name": "Red 7 Card Game",
|
||||||
"shortName" : "Red 7",
|
"shortName" : "Red 7",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"version":"0.06",
|
"version":"0.07",
|
||||||
"description": "An implementation of the card game Red 7 for your watch. Play against the AI and be the last player still in the game to win!",
|
"description": "An implementation of the card game Red 7 for your watch. Play against the AI and be the last player still in the game to win!",
|
||||||
"tags": "game",
|
"tags": "game",
|
||||||
"supports":["BANGLEJS2"],
|
"supports":["BANGLEJS2"],
|
||||||
|
|
|
@ -486,8 +486,7 @@ function canPlay(hand, palette, otherPalette) {
|
||||||
} else {
|
} else {
|
||||||
//Check if any palette play can win with rule.
|
//Check if any palette play can win with rule.
|
||||||
for(let h of hand.handCards) {
|
for(let h of hand.handCards) {
|
||||||
if(h === c) {}
|
if(h !== c) {
|
||||||
else {
|
|
||||||
clonePalette.addCard(c);
|
clonePalette.addCard(c);
|
||||||
if(isWinningCombo(c, clonePalette, otherPalette)) {
|
if(isWinningCombo(c, clonePalette, otherPalette)) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -531,8 +530,7 @@ class AI {
|
||||||
} else {
|
} else {
|
||||||
//Check if any palette play can win with rule.
|
//Check if any palette play can win with rule.
|
||||||
for(let h of this.hand.handCards) {
|
for(let h of this.hand.handCards) {
|
||||||
if(h === c) {}
|
if(h !== c) {
|
||||||
else {
|
|
||||||
clonePalette.addCard(h);
|
clonePalette.addCard(h);
|
||||||
if(isWinningCombo(c, clonePalette, otherPalette)) {
|
if(isWinningCombo(c, clonePalette, otherPalette)) {
|
||||||
ruleStack.addCard(c);
|
ruleStack.addCard(c);
|
||||||
|
|
|
@ -8,8 +8,6 @@ const hs = require('./heatshrink.js');
|
||||||
if (pc) {
|
if (pc) {
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
var print=console.log;
|
var print=console.log;
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeDir(json) {
|
function writeDir(json) {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: Initial implementation
|
0.01: Initial implementation
|
||||||
0.02: Fix app icon
|
0.02: Fix app icon
|
||||||
0.03: Fix clock animation issue and reduce source size
|
0.03: Fix clock animation issue and reduce source size
|
||||||
|
0.04: Minor code improvements
|
||||||
|
|
|
@ -968,8 +968,7 @@ function activateItem () {
|
||||||
animateToClock();
|
animateToClock();
|
||||||
break;
|
break;
|
||||||
case 0: // food
|
case 0: // food
|
||||||
if (tama.sleep) {
|
if (!tama.sleep) {
|
||||||
} else {
|
|
||||||
// evolution = 0;
|
// evolution = 0;
|
||||||
mode = 'food';
|
mode = 'food';
|
||||||
lightSelect = 0;
|
lightSelect = 0;
|
||||||
|
@ -979,8 +978,7 @@ function activateItem () {
|
||||||
mode = 'light';
|
mode = 'light';
|
||||||
break;
|
break;
|
||||||
case 2: // game
|
case 2: // game
|
||||||
if (tama.sleep) {
|
if (!tama.sleep) {
|
||||||
} else {
|
|
||||||
animateToGame();
|
animateToGame();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "tabanchi",
|
"id": "tabanchi",
|
||||||
"name": "Tabanchi",
|
"name": "Tabanchi",
|
||||||
"shortName": "Tabanchi",
|
"shortName": "Tabanchi",
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"type": "app",
|
"type": "app",
|
||||||
"description": "Tamagotchi WatchApp",
|
"description": "Tamagotchi WatchApp",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
|
|
Loading…
Reference in New Issue