|
@@ -14,6 +14,8 @@ import {
|
|
|
NIGHTMARE,
|
|
|
RAMP,
|
|
|
RAMP_HARD,
|
|
|
+ GUN_GAME,
|
|
|
+ DIFFICULTY_TIERED,
|
|
|
} from "../../../domain/constants";
|
|
|
import useCountryLookup from "../../../hooks/useCountryLookup";
|
|
|
import Loading from "../Loading";
|
|
@@ -64,6 +66,11 @@ const PRESETS = {
|
|
|
clockMode: RACE,
|
|
|
scoreMethod: RAMP,
|
|
|
},
|
|
|
+ GUN_GAME: {
|
|
|
+ ...DEFAULTS,
|
|
|
+ gameMode: GUN_GAME,
|
|
|
+ generationMethod: DIFFICULTY_TIERED,
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
export const LastSettingsButton = ({ onClick }) => (
|
|
@@ -189,6 +196,9 @@ const GameCreationForm = ({ afterCreate, lastSettings = null }) => {
|
|
|
<Item value={PRESETS.BOOTLEG_GG_DUEL} display="⭐">
|
|
|
Legally Distinct from Geoguessr Duels
|
|
|
</Item>
|
|
|
+ <Item value={PRESETS.GUN_GAME} display="⭐">
|
|
|
+ Gun Game
|
|
|
+ </Item>
|
|
|
</Dropdown>
|
|
|
{lastSettings && (
|
|
|
<LastSettingsButton onClick={() => setPreset(lastSettings)} />
|
|
@@ -212,6 +222,9 @@ const GameCreationForm = ({ afterCreate, lastSettings = null }) => {
|
|
|
<Item value={3600} display={ms(60 * 60 * 1000)}>
|
|
|
1 Hour
|
|
|
</Item>
|
|
|
+ <Item value={7 * 24 * 3600} display={ms(7 * 24 * 60 * 60 * 1000)}>
|
|
|
+ "Limitless" (1 Week)
|
|
|
+ </Item>
|
|
|
</Dropdown>
|
|
|
<Dropdown selected={rounds} onSelect={setRounds} open="rounds">
|
|
|
<Item value={1}>1 Round</Item>
|
|
@@ -230,6 +243,9 @@ const GameCreationForm = ({ afterCreate, lastSettings = null }) => {
|
|
|
<Item value={URBAN} display="🏙️">
|
|
|
Urban Centers
|
|
|
</Item>
|
|
|
+ <Item value={DIFFICULTY_TIERED} display="🎲">
|
|
|
+ Difficulty Tiered
|
|
|
+ </Item>
|
|
|
</Dropdown>
|
|
|
<CountryDropdown
|
|
|
countryLookup={countryLookup}
|
|
@@ -244,6 +260,9 @@ const GameCreationForm = ({ afterCreate, lastSettings = null }) => {
|
|
|
<Item value={FROZEN} display="❄️">
|
|
|
Frozen
|
|
|
</Item>
|
|
|
+ <Item value={GUN_GAME} display="🔫">
|
|
|
+ Gun Game
|
|
|
+ </Item>
|
|
|
</Dropdown>
|
|
|
<Dropdown
|
|
|
selected={clockMode}
|