Emoji Quest

🌈 Mojick has faded from the world. 🐉 Mojical creatures 🦄 have been lost for an age 🕰. You, 😬 Adventurer 😲, are charged to wander the 🎲 Faces of Daia 🎲 to find and restore the 💨 essences 💦 of 🔥 mojick ⚡️, ❓ interrogating, 🪓 harvesting, ✂️ crafting, and, where the cause is just, ⚔️ fighting emojis to restore mojick to all the lands.
Emoji Quest is a crafting adventure drawn entirely in emoji. Everything on the screen is an emoji tile: the terrain, the creatures, the things you carry, and the buttons you press. You can play it in a browser, on a keyboard or a phone, and the code is open source under the BSD license.
It is half finished. You can explore three of the world’s six faces, learn to forge and craft, and follow the quest for the wand of wind and water to the North Pole, and from there to the Center of Daia, a small room where a salamander named Sal Mander introduces the developer, who thanks you for playing the preview and asks you to leave feedback.
The world #
Daia is a cube. Each of its six faces is a grid of 81 by 81 tiles, and walking off one edge brings you onto the next face, with the world turning under you so that a held direction keeps its heading. The faces are named Dysia, Oria, Infra, Borea, Occia and Euia, for the die faces ⚀ through ⚅, and every tile has a place name built from nested three by three grids of arrows. You start on Euia, the green face, at the gate of the castle of Princess Die.
Daia is older than the game. Where Emoji Quest Came From tells how it began, with a MUD, a cubic world called Tale, and a turn to emoji in 2019.
The princess explains the premise. “The power of mojick—the transmutation of emoji—has faded from the land… Will you be the one to restore the mojick of yore?” The captain of the guard sends you east to the spelling bee, who reviews wands, and the bee sends you on to Herman on the Isle of Occia and north to the elves at the Pole of Borea. Herman has lost his trident, a wand of water mojicks. Galadyelf explains that the wand of the wind is a blessing on an umbrella, and Magus and Maggie, at the North Pole, are waiting for a student who can make the ☔️ wand of 💨 wind and 💦 water.
Along the way there are a few dozen characters who clue recipes, mostly in puns. The 🔩 bolt pairs well with ⚙️ gears and 🔗 links. The 🥄 spoon will have to suffice if you can’t find a shovel emoji. The 🪝 hook was going to be ⚓️ before the hook emoji appeared. The school of merging, the crafting tutorial, suggests that you try making a pair of 🍎 apples, and you get a 🍐 pear. The puns of Daia are older than the game: the spelling bee and Sal Mander first appeared in The Faces of Daia, with the drawings I made for Die as in Dice.
Playing #
The controls are a calculator’s number pad.
8, 4, 6 and 2 move, 5 waits a turn, and a separate 🍔 hamburger button
opens the menu.
The same pad is drawn on the screen for a phone, and the keyboard also takes
the arrows, hjkl and wasd.
The bottom corners of the pad are your left and right hands, and the top left
is your pack, with eight slots in the ring around the center.
You do almost everything by walking into things. Bumping into a character with nothing in particular in your hands is conversation, a line of dialog for each bump. Bumping into a character or a thing with the right items in your hands is an action: an axe on a tree reaps 🪵 wood, a pick on the mountain cuts 🥉 copper, scissors on a ram cut 🧶 yarn (“Shear audacity!”), and an empty hand on an apple tree picks an apple. The 🏦 River Bank changes coppers for silver and silver for gold, and the forge turns copper into a 🔗 link, silver into a 🔩 bolt and gold into a ⚙️ gear. The champignons, a mushroom recycling plant, take tools back for about what went into them.
Crafting #
Crafting combines what is in your two hands. Choose an item in one hand and press 2, and it combines with the item in the other. The order matters: the item you chose is the agent and the other is the reagent, so a bolt on a gear is not a gear on a bolt. A pair with no recipe gets “💩 Can’t combine these!”
The tree starts with the three metal parts from the forge:
| on 🔩 bolt | on ⚙️ gear | on 🔗 link | |
|---|---|---|---|
| 🔩 bolt | 🔪 knife | 🥄 spoon | 🔧 wrench |
| ⚙️ gear | ⛏ pick | 🚲 bicycle | 🛡 shield |
| 🔗 link | 🔨 hammer | 🪝 hook | ⛓ chain |
Then tools make tools. Two knives make ✂️ scissors, a bolt on a knife makes a 🗡 dagger, and a hammer on a knife makes a 🪓 axe. Tools also work on materials without being used up: a spoon on wood makes a 🛶 canoe and you keep the spoon, and a knife on wood makes 🥢 knitting needles, with which yarn becomes a 🧥 coat. A cane and a hook make a 🎣 fishing rod. Two canes weave a 🧺 basket, a basket and yarn make a 🏀 basketball, and a basketball on a hammer makes a 🥏 discus (“🔨 Hammer…smash! 🥏”). A discus and a dagger make a 🌂 umbrella, which is a sword in a disc, which is what Galadyelf meant. Any two different nightshades, tomato, potato, aubergine, bell pepper or chili pepper, make 🕶 night shades.
The game ships with 51 recipes, 93 bump actions, 62 kinds of item and 75 kinds
of character, all of them plain data in
emojiquest/.
How it is built #
Emoji Quest is plain JavaScript in native modules, type checked with TypeScript through JSDoc comments, with no game framework and no runtime dependencies. It draws with the DOM and SVG, moving emoji with CSS transforms, and the browser’s own emoji font draws the emoji, so the game looks different on every platform. The colors of the world are OpenMoji’s palette, adopted in March 2021.
It began in February 2021 as a demonstration of a cube rolling under a camera,
and the history still shows it: most of its 529 commits begin with [cube],
and the package is still named cube.
It grew inside the BØRKSHOP’s JavaScript monorepo, borkshop/js,
until I moved it into a repository of its own in July 2023, when it
became Emoji Quest by name.
The pieces are small and each has one job. The driver is the only part of the game that observes the passage of time. It turns key presses into turns, 300 milliseconds each, lets you queue moves ahead by tapping, and repeats a held key. The controller is a state machine of modes (play, item, pack, edit and a few more), where each command returns the next mode. The model simulates the whole world every turn. It gathers the intents of the player and every other creature, resolves bumps first, because a bump can move, destroy or transform what was bumped, and then holds an auction for every contested tile, choosing a winner at random. The model does not decide what to draw. It broadcasts every change, and the view models draw only what is near the player. On the cube, the view keeps the player’s face and its four neighbors, and when you cross an edge, two neighbors pivot on a corner and the sixth face jumps into its new place.
A world is one JSON document that carries its own rules, so a saved world keeps the mechanics it was made with. One schema describes it, and from that schema come a validator, a converter to and from the in-memory form, and the TypeScript types. Saves go to the browser’s local storage, with an autosave whenever you pause.
Emoji Quest has its own world editor, reached from the menu. In edit mode the cursor goes anywhere and paints, copies, cuts and erases creatures and terrain. The editor can name places, point transports at them, edit the palette, and add or remove levels, which may be a cube, a torus, or a plain rectangle.
Who made it #
I wrote most of this version, but not alone. Joshua T Corbin of the BØRKSHOP has commits in it, on its development tooling in 2021 and its build in 2023.
This is the second Emoji Quest. The first, Lobster Quest, was written from October 2019 to August 2020 in Lobster, Wouter van Oortmerssen’s game programming language, on a fork of Lobster’s own repository. Corbin started it with a glyph-drawing proof of concept and wrote most of its commits, and I brought in the cube, the Daia world, the game data and the art. I kept a devlog of it on Patreon, now an article in three parts, Lobster Quest. That version drew OpenMoji’s emoji, which are free to use under CC BY-SA 4.0, and Emoji Quest is what led me to contribute emoji of my own to OpenMoji. That is another story.
Emoji Quest, though half-finished, is as far along as I can take it, but is missing something intangible to carry through a part 2. If I carry the project further, it will likely become an engine for socializing interactive emoji vignettes, and inviting people to be creative with their own ideas for interaction among emojis, to make jokes and tell stories to their friends or following.
The thumbnail draws Emoji Quest’s green face in OpenMoji emoji, by Emily Jäger (grinning face), Martin Wehl (castle), Lisa Thiel (guard), Hilda Kalyoncu (tree) and Sofie Ascherl (cow and ram), under CC BY-SA 4.0. The picture at the top is the game as my phone draws it.