

"What The Flag!" is a flag-guessing game. Test your skills in 2 game modes and check if you know the flags for different continents!

Controls
- ARROW KEYS: move the cursor when writing country for given flag
- X: Submit current guess
Game modes
- NORMAL: correct guess gives points and increases streak (which multiplies points for the next flag), incorrect guess gets 1 point away and resets the streak
- TIME ATTACK: no penalty for incorrect guess and no streak, but the time runs away and each correct guess adds more time
Why this exists
I created this for myself to learn flags of the countries around the world, but I had so much fun creating it (and playing along the way), I thought I'd polish it and share with the community.
This is my first ever game in PICO-8 made entirely by me, including coding, music and sprites.
Any comments, suggestions are more than welcome!
How it's made
The flags are generated based on their recipes that are passed to functions that draw patterns. Most of the flags are just different shapes drawn in a specific order, some include sprites. Initially, I wanted to add flags from all the countries, but I run out of tokens midway through. I am now experimenting with adding the flags' data as a separate cartridge, but haven't figured it out how to do it. If it's possible, then the game can be later extended with new flag packs of different kinds (like historical ones or sport groups).



Nice project.
To overcome the token limit, you should relate the flags={…} statement that’s eating all your tokens by a string to be parsed.
You can build your custom parser or use a generic one like parens-8 , for example.
This will solve the token problem, but with a huge list of flags, you may run into max size or max compressed size next.
If that happens, you may want to compress your flag string.
If that’s still not enough, multi cart is the solution :
Idea is for each data cart to poke its data in high memory before calling the next cart with load.
The final cart of the chain is the one with the game logic, and is also in charge of building the flags structure from the poked memory



@RealShadowCaster Thanks for taking a look at my game! Your ideas are pretty clever, and I need to try them out. Maybe with parsing string into an object, and with compression algorithms, I will be able to fit all of +200 flags into one cart, and avoid using multiple. Right now I have around 100 flags, so seems doable. Thank you for the tips!
[Please log in to post a comment]