Introducing Flag Mode: a new way to explore Globdrop
Until now, Globdrop has been a map-clicking game: it gives you a place name and you drop a pin where you think the place is. The scenarios go from the 946 municipalities of Catalonia to world capitals and fictional maps, but they all ask the same question: where is it?
Flag Mode asks the opposite. The game shows you a flag and you have to say which country, region or organisation it belongs to, against a 15-second clock. There is no map and no distance. This post explains how a game is put together, what decides how hard it is, how the two ways of answering work and how the score is calculated, all as it stands in the game’s code.

Update, 8 November 2026
Flag Mode has grown since this post was written. There are now eight flag scenarios instead of four: "All countries" with 197 flags, five continent sets (Europe 47, Africa 54, Asia 47, the Americas 35 and Oceania 14), Spain and Fun. The continent sets are slices of the 197, so the game has 270 different flags. A third way of answering, Country → flag, shows a country's name and asks you to pick its flag from four. World and Europe now come from a single file, countries.json, instead of world.json and europe.json. The sections below describe the first four sets, and the clock, the difficulty filter and the score work the same way in the new ones.
Three choices before the first flag
The flag scenarios sit in their own tab of the scenario picker. Choosing one takes three steps:
- The scenario: Flags of the World, Flags of Europe, Flags of Spain or Fun with Flags (and, since November, Africa, Asia, the Americas and Oceania; “Flags of the World” is now titled “All countries”).
- The difficulty: Easy, Medium or Hard.
- The answering mode: Multiple Choice or Write Name (and, since November, Country → flag).
The game then fetches the scenario’s flag list (a JSON file in public/data/flags/), keeps the flags allowed by the difficulty, shuffles them and takes the first ten. Those ten are the game. Each one is preceded by a three-second countdown, and then the 15-second clock starts.
The first four scenarios, 182 flags
Each scenario is one file, and each entry in it has a code, a difficulty, a name in Catalan, Spanish and English and, sometimes, a list of other accepted spellings.
| Scenario | File | Flags | Easy | Medium | Hard |
|---|---|---|---|---|---|
| Flags of the World | world.json | 74 | 24 | 25 | 25 |
| Flags of Europe | europe.json | 35 | 10 | 10 | 15 |
| Flags of Spain | spain.json | 19 | 5 | 6 | 8 |
| Fun with Flags | fun.json | 54 | 14 | 20 | 20 |
That table is the state of the game in September 2026. On 8 November, world.json and europe.json were replaced by countries.json, which has 197 countries, each with a continent and its own difficulty label. The difficulty split of the new sets is not in the table above.
World is national flags from every continent. Europe is the continent on its own, from the United Kingdom and France down to Vatican City, San Marino and Liechtenstein. Spain is the 17 autonomous communities plus Ceuta and Melilla. Fun is everything that isn’t a country: organisations such as the UN and NATO, cities such as Barcelona and Chicago, regions such as Bavaria and Quebec, historical flags such as the Qing Dynasty’s and Prussia’s, and a few curiosities like the Jolly Roger and Sealand. Why each set holds what it holds is the subject of The art of vexillology.
The images come from two places. World and Europe use national flags at 320 pixels wide from flagcdn.com, keyed by the ISO country code. Spain and Fun use SVG files bundled with the game (public/flags/es/ and public/flags/fun/), because most of those flags have no ISO code to look up.
How difficulty filters the pool
Every flag carries one of three labels, easy, medium or hard, and the difficulty you pick decides which labels enter the game. The filter is cumulative, from flag-engine.ts:
- Easy: only flags marked
easy. - Medium:
easyandmediumflags. - Hard: all of them.
So Hard doesn’t mean ten hard flags; it means ten flags drawn from the whole set, some of which will be easy ones. In World on Hard you might get Japan and then Bhutan.
The pool matters for a second reason: it is also where the wrong answers and the suggestions come from (more on both below). On Easy, the buttons and the suggestion list only ever show easy flags.
There is one edge case. A game is ten flags or the whole pool, whichever is smaller. Flags of Spain on Easy has five flags (Andalusia, the Basque Country, Catalonia, Galicia and the Community of Madrid), so that game is five rounds long. Every other combination has at least ten.
The labels are our own judgement, set flag by flag in the data files, not something calculated from how players do. The same flag can carry a different label in each set: Sweden is medium in World and easy in Europe, and the Canary Islands are medium in Spain and hard in Fun.
Multiple Choice: one right answer and three random ones
In Multiple Choice the flag appears above four buttons with names. One is right. The other three are drawn at random from the same pool, excluding the right one, and the four are shuffled. You click, the right button turns green and, if you missed, your choice turns red.
Because the wrong options are random, they are rarely the flags that look most like the right one. If the flag is Indonesia’s (red over white), you will usually see three unrelated countries rather than Poland (white over red). That makes Multiple Choice easier than it could be, and it is a known limit rather than a design goal. We discuss it again at the end.
Write Name: what counts as the right answer
In Write Name there are no buttons, only a text box. You type the name and press Enter or the submit button. As you type, a list shows up to five names from the current pool that contain what you’ve typed, wherever it appears in the name: typing “co” offers Colombia but also Morocco. You can pick one with the mouse or the arrow keys, or ignore the list.
When you submit, the game compares your answer with every name the flag has, in the three languages, plus its aliases. Both sides go through the same normaliser first (normalizeText in src/engine/text.ts), which:
- lowercases and removes accents, so “Mexico” matches “México” and “japo” matches “Japó”;
- turns hyphens into spaces, so “Castile La Mancha” is accepted;
- drops dots and apostrophes, so “U.S.A.” matches the alias “USA”.
Names with a bracket accept both halves: “Pirate Flag (Jolly Roger)” also accepts “Pirate Flag” and “Jolly Roger”. After normalising, the comparison is exact. A typo like “Columbia” is wrong, and so is a partial name such as “Saudi”. This keeps the rule easy to predict, at the cost of being strict with spelling. Every rule above, with the cases it misses, is in how Write mode works.
The interface is available in six languages, but flag names exist only in Catalan, Spanish and English. In Chinese, Arabic or Japanese the buttons and suggestions show the English name. What that means for typing in those scripts is explained in Type-to-answer in six languages.
The clock and the score
A correct answer is worth 100 points plus a speed bonus of up to 100, from calculateScore in flag-engine.ts:
const timeBonus = Math.round((timeRemaining / 15) * 100);
return 100 + timeBonus;
The clock runs on requestAnimationFrame, so timeRemaining has fractions of a second. Answering with 12 seconds left gives 180 points; with 3 left, 120. Each second costs about seven points. A wrong answer is worth 0, whatever the speed, and so is running out of time.
A round can be worth at most 200 points, so a ten-flag game tops out at 2,000. The results screen lists every flag in the game with the points it earned and a tick or a cross, and gives you a label based on your share of the maximum: Novice below 25%, Amateur below 60%, Expert below 85% and Flag Master from there up. For comparison, the map scenarios score by distance, with a different formula and threshold for each map; Designing Globdrop’s feedback loop explains that side.
Nothing is stored after the game. There are no accounts, no saved scores and no leaderboards. You can share the result (scenario, mode, points and how many flags you got right) through WhatsApp, Facebook, Instagram, the system share sheet or the clipboard.
What Flag Mode doesn’t do yet
These are the limits of the current code, as we see them:
- Wrong options are random. Multiple Choice doesn’t pick look-alike flags as distractors, so the hard pairs (Indonesia and Poland, the five Nordic crosses) only meet by chance.
- No typo tolerance. “Columbia” scores nothing. The suggestion list is the safety net.
- Aliases are uneven between sets. In Spain, “Madrid” is enough for the Community of Madrid; in Fun, the same flag needs its full name, because only the Spain entry has that alias.
- All countries and the continent sets (World and Europe, when this was written) load their images from flagcdn.com. With no connection to that site, those scenarios show no flag.
- No review mode. The results list shows what you missed, but there is no way to replay only those flags.
To try it, open globdrop.vedratic.com, open the Flags tab and pick a set. It needs no installation and no account. The how-to-play guide covers both kinds of scenario and the three answering modes, and the strategy guide has tips for each flag set. The full list of scenarios is on the Globdrop page.