2047pp - Workaround for the minifier removing the class definition

master
Martin Boonk 2023-01-14 21:55:07 +01:00
parent 705a5d7a1b
commit c5df6873c0
3 changed files with 131 additions and 128 deletions

View File

@ -1,3 +1,4 @@
{ // wrap app in scope to prevent minifier from removing the class definition completely
class TwoK { class TwoK {
constructor() { constructor() {
this.b = Array(4).fill().map(() => Array(4).fill(0)); this.b = Array(4).fill().map(() => Array(4).fill(0));
@ -138,3 +139,4 @@ if (process.env.HWVERSION==1) {
setWatch(() => { res = twok.shift(2); if (res) twok.addDigit(); twok.render(); }, BTN1, {repeat: true}); setWatch(() => { res = twok.shift(2); if (res) twok.addDigit(); twok.render(); }, BTN1, {repeat: true});
setWatch(() => { res = twok.shift(-2); if (res) twok.addDigit(); twok.render(); }, BTN3, {repeat: true}); setWatch(() => { res = twok.shift(-2); if (res) twok.addDigit(); twok.render(); }, BTN3, {repeat: true});
} }
}

View File

@ -1,2 +1,3 @@
0.01: New app! 0.01: New app!
0.02: Better support for watch themes 0.02: Better support for watch themes
0.03: Workaround minifier bug

View File

@ -2,7 +2,7 @@
"name": "2047pp", "name": "2047pp",
"shortName":"2047pp", "shortName":"2047pp",
"icon": "app.png", "icon": "app.png",
"version":"0.02", "version":"0.03",
"description": "Bangle version of a tile shifting game", "description": "Bangle version of a tile shifting game",
"supports" : ["BANGLEJS","BANGLEJS2"], "supports" : ["BANGLEJS","BANGLEJS2"],
"allow_emulator": true, "allow_emulator": true,