mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build and deploy of version 29028296
This commit is contained in:
parent
a136475f88
commit
8b1278cb55
8 changed files with 325 additions and 3926 deletions
|
@ -5,7 +5,7 @@ export const options = {
|
|||
default: true,
|
||||
name: `Game sounds`,
|
||||
help: `Can slow down some phones.`,
|
||||
afterChange:()=>{},
|
||||
afterChange: () => {},
|
||||
disabled: () => false,
|
||||
},
|
||||
"mobile-mode": {
|
||||
|
@ -21,33 +21,33 @@ export const options = {
|
|||
default: false,
|
||||
name: `Basic graphics`,
|
||||
help: `Better performance on older devices.`,
|
||||
afterChange:()=>{},
|
||||
afterChange: () => {},
|
||||
disabled: () => false,
|
||||
},
|
||||
pointerLock: {
|
||||
default: false,
|
||||
name: `Mouse pointer lock`,
|
||||
help: `Locks and hides the mouse cursor.`,
|
||||
afterChange:()=>{},
|
||||
afterChange: () => {},
|
||||
disabled: () => !gameCanvas.requestPointerLock,
|
||||
},
|
||||
easy: {
|
||||
default: false,
|
||||
name: `Kids mode`,
|
||||
help: `Start future runs with "slower ball".`,
|
||||
afterChange:()=>{},
|
||||
afterChange: () => {},
|
||||
disabled: () => false,
|
||||
}, // Could not get the sharing to work without loading androidx and all the modern android things so for now i'll just disable sharing in the android app
|
||||
record: {
|
||||
default: false,
|
||||
name: `Record gameplay videos`,
|
||||
help: `Get a video of each level.`,
|
||||
afterChange:()=>{},
|
||||
afterChange: () => {},
|
||||
disabled() {
|
||||
return window.location.search.includes("isInWebView=true");
|
||||
},
|
||||
},
|
||||
} as const satisfies {[k:string]:OptionDef};
|
||||
} as const satisfies { [k: string]: OptionDef };
|
||||
|
||||
export type OptionDef = {
|
||||
default: boolean;
|
||||
|
@ -56,4 +56,4 @@ export type OptionDef = {
|
|||
disabled: () => boolean;
|
||||
afterChange: () => void;
|
||||
};
|
||||
export type OptionId = keyof typeof options ;
|
||||
export type OptionId = keyof typeof options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue