nanoMMO

MMORPG drag and drop in C++ for the inventory and the hotbar

Our C++ MMORPG's hotbar, chat, bag and login screens get the new look, and items and skills drag for real, checked by the server's own rules.

Watch on YouTube

The second half of our MMORPG's new interface, in C++ with Dear ImGui and raylib. The hotbar gets slots of brass in two rows, and a skill dragged onto another swaps with it, in an order the settings keep. The chat closes into a button that counts the lines since. Items drag as themselves, lit green or red by the server's own inventory rules, which the client now links as a library, and a move shows at once, before the server answers, and goes back if it says no. The character window becomes a paper doll, an item dropped over the world asks to be thrown away, and the login, the worlds, the characters, the loading and the death screens get the look. This is episode 64 of a series about building an MMORPG from scratch in C++, with the focus on the engineering around the game.

Topics: Graphics, Gameplay

The code

Each step on screen is a tag in the game's repository. The code at the end of the episode is ep064/end.

  1. 1:53ep064/step-1A hotbar you arrangeBrowseChanges
  2. 6:58ep064/step-2Swapping skillsBrowseChanges
  3. 13:09ep064/step-3A chat that closesBrowseChanges
  4. 20:03ep064/step-4Items that dragBrowseChanges
  5. 33:54ep064/step-5Throwing awayBrowseChanges
  6. 37:59ep064/step-6Before the server answersBrowseChanges
  7. 45:38ep064/step-7Before the worldBrowseChanges
  8. 59:52ep064/step-8Loading and dyingBrowseChanges

Transcript

Intro

0:00 Welcome back to the series, where in episode sixty-four, we finish the game's new interface with the things we touch: the hotbar, the chat, the items, and the screens before the world. First, a quick look at what we'll have by the end.

0:13 By the end of the episode, the login and the screens after it are in the game's look, over embers rising in the dark. In the world, a skill drags onto another on the hotbar, and they swap. An item drags as the item, not its name, lit where the rules let it go, and the chat closes into a button in the corner.

0:31 The project has a website, with a link to the code on GitHub, which is open source, and a page for each episode, with its chapters and the code at each of its steps.

Last time

0:41 A quick reminder of where we left off. Last time, the interface got the game's own colours and two fonts, at a scale that follows the screen, with panels of our own and a menu on Escape. Our frame got our face, the monster we pick moved to the top, under a compass, and the minimap went round.

Today

1:00 Here's the rest of the interface as it stands. The frames, the compass and the minimap have the new look, but the hotbar along the bottom is still two rows of ImGui's buttons. The bag and the character are panels now, but their slots are still buttons. A potion dragged onto the head shows a tooltip with its name, not the potion, and once it's let go, the server says no, in the chat, which stays open in the corner. Everything before the world still looks like a tool, too.

1:27 Today is the half of the interface we touch. First the hotbar, in slots of our own, where a skill drags onto another to swap, then a chat that closes, and items that drag as themselves, checked by the server's own rules on the way. Then a move that shows the moment it's made, before the server answers. After that, the screens before the world, and the loading and death screens. All right, let's get going, with the hotbar.

A hotbar you arrange

1:54 Each episode's code is a new minor version now, so the top CMake file moves the project on to zero point sixty-four. In the theme's header file, DrawSlotIcon takes a slot's corners, an icon, its colour, and an alpha that's one unless we say otherwise. It draws an icon in the middle of a slot, in its colour, on a glow of that colour. In theme, DrawSlotIcon starts by working out where the middle of the slot is, halfway between its corners. The icon's size is a little under half the slot's height, and the glow's radius a little less. A glow of the icon's colour goes behind it, fading out from the middle. The glow is four filled circles, from the biggest in, each at a twentieth of the colour's strength, which add up towards the middle. The icon is a Font Awesome glyph, so we measure it in the text face, and draw it with a shadow, centred on the middle, at the alpha, which fades a skill we don't know yet. In the hotbar, each skill now sits in a slot of brass, on a plate of its own, with its icon in the skill's colour and its key in the corner. We bring in the theme, and the old sizes in pixels go. The new sizes are in points, at a scale of one, so they grow with the screen: a slot of fifty-four, a gap of six, a margin of fourteen under the plate, and twelve of padding inside it. The red for a skill without a target is in bytes now, for the draw list. The old DrawCentered goes too, and SkillColor comes in. A skill's colour, which its icon's in, is its first fx's, as it looks in the world, or else the colour of the words. An fx's colour is a byte each of red, green, blue and alpha, which we shift down and mask, with a full alpha. Zero means it has none, and with none at all, the icon falls back to paper. DrawCentered comes back with a font, and a colour for the text, which its callers pick now. It centres it with the theme's DrawShadowedText, which puts the shadow a sixteenth of the size down and to the right, under the text. The cooldown's slice would darken the brass now, so an inset of two and a half points keeps it inside the slot's brass, as the clip takes it in from each side. The slice is black at about two thirds. Then the edge of the slice, bright, as it sweeps round, is a line from the middle, at the angle where the slice starts, in gold at six tenths. The seconds left are in light gold, in the bold. In Build, the sizes are scaled once, at the top. First is where the number keys start, one past the swing. The swing and the number keys go along the bottom, and the row on Shift above them, past the swing's slot. Keyed counts the skills on number keys, and past nine of them, there are two rows. The columns are the swing and nine more, at most, and there are one or two rows. The plate's size adds up the columns of slots, with the gaps between them and the padding round them, and the rows the other way, six hundred and eighteen points across. The window still goes at the middle of the bottom of the screen, a margin up, but we set its size, as ImGui doesn't lay the slots out any more. Its padding is zero while it begins, so the slots go from its corner. The window has no background, as the plate is ours, and no saved settings, as it's placed afresh each frame. The plate is the theme's panel, at nine tenths, so the world shows through a little. The old loop drew the row above first, so that ImGui's SameLine and a Dummy could lay the slots out, and all of that goes. Now we go through the slots in order, and work out where each one is. The swing stays on Space, at the front. A slot is above once it's past the swing and nine more, and that row starts a column in. With two rows, the number keys take the bottom one. A slot's corner is the plate's, plus the padding, plus a slot and a gap for each column and row before it. ImGui tells the slots apart by the skill's id, which we push, and the cursor goes to the slot's corner. Each slot is an invisible button there, which takes the clicks and the hover, and a click on a skill we don't know does nothing. Its edge is gold while hovered, and ember while held. DrawSlot draws the well, lit by that edge, and the icon goes on it in the skill's colour, or red without a target, at three tenths while we don't know the skill. The corners ImGui gave the old button go, as the slot's corners are ours now. Under a skill we don't know, Learn goes in gold once we've reached its level, or the level it needs, muted. The swing's on Space, and the number keys count from the next, with Shift for the row above, shown as an s. The key's label is in the bold, at thirteen points, a little in from the top left corner, in paper, with a shadow, so that it reads over a bright icon.

6:41 Here's the hotbar in the game, at this step. Each skill sits in a slot of brass, in its colour, with its key in the corner. Over a slot, a tooltip says what the skill is, and the skills we haven't learned yet are faded, with Learn in gold, as we've reached their level.

Swapping skills

6:59 In the theme's header file, DrawDragged takes the icon, its colour, a slot's size and grab. It draws what the player's dragging, under the mouse, over everything else: its icon in a slot of the size, where the mouse took hold of it. In theme, DrawDragged draws on ImGui's foreground list, which goes over all the windows. The slot's corner is the mouse less the grab, so the icon stays under the point we took hold of, and doesn't jump to centre on the pointer. Its shadow is four points right and six down, at a little under half black. Lifted off the screen, it gets a deeper shadow, and a gold edge. Then come the slot, edged in gold, and the icon on it. In the hotbar's header file, the skills still start in the order of their levels, and now the player drags one onto another to swap them. Build loses its const, as a drop swaps two slots. Order hands back the skills after the swing, by their ids, in their slots' order. Arrange puts the skills in the order, as the player left them: the ones it names first, in its order, and any it doesn't after them, as they were. TakeRearranged says whether the player has swapped two skills since this was last asked, from a flag, rearranged. In the hotbar, a skill dragged from its slot goes with the mouse, and let go over another, the two swap places. We bring in c string, for mem copy, and utility, for exchange and swap. The payload's type is SKILL, like the bag's ITEM, so the hotbar takes skills and nothing else. A Dragged holds which slot a payload came from, as plain data, since ImGui copies it byte for byte: the slot, and the grab. Order goes from one past the swing, if there is one, and pushes each slot's skill id onto a list, which it returns. Arrange takes a list like that, and starts past the swing too, at first. A lambda, which captures the order by reference, gives each skill's place. Each skill's place in the order, or after them all if it isn't there: we find its id in the order, and the place is its distance from the start, which is the order's length when it's missing. A stable sort by place puts the named skills first, and keeps the rest as they were, in the order of their levels. TakeRearranged hands back the flag and lowers it, with std exchange. Build's const goes here too, and before the loop, we ask ImGui for the payload in flight, and dragging is whether its type is ours. Each slot needs to know where it came from, so a Dragged called from gets its bytes back while we're dragging. Any slot but the swing's is a drag source, and we turn off ImGui's preview tooltip, as we draw our own. Down is where ImGui saw the left button go down. Held where the mouse went down on it, the grab is that, less the slot's corner. The payload goes in once, as the drag begins, and the source ends. Above that block, we write it down: dragged onto another, two skills swap. While a skill's dragged, source is whether it came from this slot. Any other slot but the swing's is a target, lit green while the skill's over it. Let go there, and accept drag drop payload hands it over, without ImGui's own rectangle, as the green edge is ours. We swap the two skills, and note it's rearranged. Without a drag, a hovered slot is gold or ember, as before. In the source, the alpha drops to a quarter, as if the skill's been lifted out, and DrawDragged draws it under the mouse, at the grab. And the tooltip waits until no skill's being dragged. Our proto file for the settings gets a repeated field, numbered three: the hotbar's skills after the swing, by their ids, in the player's order. In the settings' header file, we bring in c standard int and vector, for the hotbar's list. The hotbar's skills after the swing, by their ids, in the order the player dragged them into, and none for the order of their levels. In settings, the loaded list is copied into the vector, from beginning to end, and saving goes through the order, adding each skill to the file's list in turn. In the menu's header file, reset hotbar is set when they ask for the hotbar's own order back. Reset hotbar is a pointer to a flag, as Build already returns what the player picked, and BuildSettings takes it too. In the menu, the flag goes on to the settings window. On the interface page, a game button puts the hotbar back in order. A click clears the order in the settings, and raises the flag. Under it, in muted text, a hint says to drag a skill onto another to swap them, as nothing else says the slots drag. In the client's main, the hotbar takes the settings' order once it's made, and after a swap, the settings take its new one, which main saves with the rest, as it does when they change. Each frame, the reset flag starts down, the menu gets a pointer to it, and when it's up, the hotbar is made afresh from the content.

11:57 Now, a quick test that the hotbar keeps the player's order. It goes in theme's test file, with the interface's other tests, and brings in vector, the hotbar and the content. It reads the game's skills from the content folder, makes a hotbar, and takes its order, which has to have three skills at least for the test to say anything. The wanted order is the last skill first, and the rest as they were, so we insert the others after it. Then we arrange the hotbar by the last skill alone, and expect the wanted order back, which the stable sort gives. Next, we arrange it by nine hundred and ninety-nine, an id the content doesn't have, and the first skill. A skill the content doesn't have any more is left out, so the first skill comes first, as an old settings file can hold an id that's gone. And in the settings' test, the settings kept between runs get a hotbar of three, one and two, out of order, so the list has to come back as it was, not sorted.

12:53 Let's try it in the game, at this step. The first skill drags as its icon, under the pointer, and let go over the fourth, the two swap. On the settings' interface page, a button puts the hotbar back in order, and back in the world, the first skill's in its first slot again.

A chat that closes

13:10 In the chat window's header file, we bring in cstddef, for size t, the type the standard library counts in. The chat is what's said in the world, in the bottom left, over a field that Enter goes to. Its close button folds it into a button, which says how many lines have come since, and which opens it again. Build draws the lines, or the button while it's closed. Unread is static, so a test can call it without a chat window, on a few lines of its own. It counts the lines that came after the last one seen while the chat was open. Then what the chat keeps: it starts open, so what's said is there when you arrive. Focus is for a chat opened with Enter, so the field takes the keys at once. And the newest line while it was last open is an optional, empty until the chat has shown a line. In the chat window, the cross on its panel now folds the chat into a round button in the bottom left corner, and a badge on it counts the lines that come in while it's closed. We bring in algorithm, for std max, the theme, for our colours, fonts and panels, and Font Awesome's icons. The sizes are in points, at a scale of one. The margin from the corner is eighteen points, as the player frame has. The open chat is 440 points by 240, scaled like the rest, where it was 420 by 200 on any screen, and the closed button's radius is 23. A player's name goes in the flame orange of our theme, and the server's lines in gold. A small function compares two lines by their name and their words, as a line of chat has no number of its own in our protocol. Unread takes the lines, and the newest one seen while the chat was open, if there is one. While there's no line seen yet, as before the chat has shown anything, all the lines are new. Otherwise, it walks the lines from the newest back to the one seen. The client keeps the newest hundred lines, so a line seen that's gone off the top isn't found, and then they're all new. Each line is compared with the one seen, and when they match, the count is how many came after it. If whoever said the line seen says its words again, the count stops at the newer one and comes out low. That's fine for a badge, and it keeps the protocol as it is. Build starts by reading the display's size, and whether Enter was pressed while no field takes the keys, as both the button and the open chat need it. While the chat's closed, it's a round button in the corner, with how many lines are new on it. Its window goes at the margin from the bottom left, with its pivot at its own bottom left corner, so it grows up and to the right. The window's size is the circle plus fourteen points across and six up, which leaves room for the badge, as it sticks out past the circle at its top right. Its window padding is pushed to nothing, so the circle can start at the window's edge. Begin opens a window called Chat closed, which draws nothing of its own. It has no title bar or background, can't be moved, keyboard navigation skips it, and it doesn't take the focus when it appears or save its settings. The padding is popped straight after Begin, so the windows after it keep theirs. The circle's centre is a radius in from the window's corner, and six points and a radius down. An invisible button covers the circle, for the clicks and the mouse, and its tooltip says Chat, with Enter in brackets, as Enter opens it too. The drawing starts with a shadow, a black disc a little right of the button and down from it. The disc is wine red, crimson under the mouse, in a ring of brass that turns gold under the mouse, so it reads as a button you can press. In its middle goes Font Awesome's comments icon, two speech bubbles, at nineteen points, in the text face, which has the icons merged into it. It's measured first, so that it's centred on the circle, and drawn in light gold, with a shadow. Then the count, while there's a line we haven't seen. Past ninety-nine it says ninety-nine plus, so the badge stops growing. It's in the bold, at thirteen points, and measured, so that the badge can fit round it. The badge sits at the button's top right, three quarters of a radius across and up from its centre. Its radius is nine points, or half the count's width plus four, whichever is bigger, so ninety-nine plus still fits. It's a disc of ember, a bright orange red, ringed in night a point and a half thick, to part it from the button. The count is written in night too, dark on the ember, measured so that it's centred. A click on the button, or Enter, opens the chat, and Enter gives the field the keys too. While it's closed, Build returns nothing, as there's no field to say anything in. The open chat goes at that margin too, at its new size, both scaled, and its fixed alpha of four tenths goes. We're using the chat while we're typing, or while the mouse is over the rectangle where the chat goes, at its margin and its size. That rectangle isn't clipped to the current window's, as the chat's own window hasn't begun yet. It's quieter while nobody's using it, so that it doesn't hide the world. We test the rectangle by hand, as the panel's alpha goes in as the window begins, before ImGui knows whether the mouse is over it. The window becomes one of our panels, with a close button that sets open to false, almost solid while you use it, and at six tenths of its alpha while you don't. A player's name goes in the bold now. Enter, or a chat just opened with it, puts the keyboard's focus on the field, and focus is cleared, so it happens once. The panel ends with EndPanel, and the chat keeps whether its cross was clicked. Last, the newest line is the one seen, so the count, once the chat closes, starts from there.

18:53 Now, let's pin that count down with a test, in theme test, which holds the interface's tests, like the hotbar's. We bring in deque and optional, for the lines and the one seen, and the chat window's header file. The test makes a deque of three lines, without names, as the count compares the words as well, and gives them the words one, two and three. With the newest seen, nothing's new, and with the first seen, the two after it are. Counting back from the end is easy to get wrong by one, and then the badge would show a one over a chat you've read. Then a line gone off the top, or none seen yet, where all of them are new. A line that says zero isn't among the three, so it stands for one the client has since dropped, and it gives all three, like no line seen at all. A loop that finds nothing could easily fall through to a count of nothing there, and hide what you missed.

19:46 Here's the chat in the game, at this step. Its cross closes it into a button in the corner. A potion dragged onto the head is refused by the server, which says why in a line of chat, and the button counts it. A click opens the chat again, with the line.

Items that drag

20:03 So far the bag's rules live in the server's inventory, and the client has to send a move to find out whether it's allowed. In the server's CMake file, inventory becomes a library of its own, nanommo inventory. We write why above it: these are the bag's rules, which the client runs too, to show a move before the server's done it. It finds its headers from the project's root, like the server's core. And it links the protocol, the content, and Abseil's status and strings, which is all that inventory needs. The server's core drops inventory from its sources, and links the new library in its place. We could have linked the whole server core into the client, but that would bring MySQL, Redis, libsodium and Prometheus along with it. In the client's CMake file, the client's core links nanommo inventory too. So the client checks a move with the server's own code, and a client and a server built together agree on what goes where. The server still checks each move it's sent, and its answer is the one that counts.

21:05 In the bag window's header file, ItemSlot draws a slot for both windows, the bag and the character, and handles the drag and drop of their items as well. It draws a slot of the size, which ImGui doesn't draw as a button any more, with the item's icon in its tint and how many there are. A player drags an item from one slot onto another to move it, wear it or take it off, with Shift for half the stack. While it's dragged, it follows the mouse, and each slot it's over lights green if the server would let it go there, and red if not. They double-click it to use, wear or take it off, and right-click it for a menu that throws it away too, as before. And it returns what they ask for, which the server does or refuses. In the bag window, an item now drags as its icon, in a slot of its own under the mouse. The slot under it lights green where the rules let it go, and red where they don't, as the head does for a potion. We bring in algorithm, cfloat, for FLT_MAX, which tells the text measuring there's no limit on the width, and the server's inventory header, for the rules. The bag's slots are 52 points, at a scale of one, so they grow and shrink with the interface, where they were 48 on any screen. The icon's size and the count's two colours go, as the theme's slot and its colours draw them now. What's dragged keeps where it comes from, and now where in its slot the mouse took hold of it too. ImGui copies a payload byte for byte, so it's still plain data, not the Place message, and the new field is the grab. Held gives us the item the player's holding, while they drag one. It asks ImGui for the payload of the drag going on. While there's none, or it's another kind, like a skill from the hotbar, nothing's held. Otherwise it copies the bytes back into a Dragged, the way they went in, and returns it. TintOf takes the place of the function that turned the content's colours into ImGui's floats. It gives the colour of the item's icon, from its tint, or the paper's. An item without a tint, or one this client doesn't know, is in the paper colour of our words. Otherwise it packs the red, green, blue and alpha of the tint, which the content writes as one number, into ImGui's packed colour, which the slot icons are drawn in. Then Fits, which is what the library is for. It makes a copy of the bag as the server's Inventory, tries the move on the copy, and keeps whether it went through. So it says whether the server would make the move, by the bag's own rules, which the server keeps, tried on a copy. The copy is thrown away, so the bag we draw isn't touched. We could have written a check of our own in the client, but it would drift from the server's the first time somebody changed a rule. In ItemSlot, the slot's old button goes, along with its icon as text and its count's shadow. In its place goes an invisible button the slot's size, for the mouse. We keep whether the mouse is over the item, as hovered, and the rectangle it covers, its min and max corners, as we draw the slot ourselves now. While there's an item in the slot, the mouse can take hold of it. Its drag source has no preview tooltip, which by default is a box by the mouse for us to fill, and we draw our own. The grab is where the mouse went down, from the slot's corner, so the icon doesn't jump under the pointer as the drag starts. The Dragged says whether the item's worn, and which slot it's in, along with the grab. The payload is set once, as the drag starts, and the old tooltip with the name goes. So, taken hold of, an item follows the mouse, from where it was held. Held is then whatever's being dragged, from any slot, and source says whether it's this slot's item. A slot is lit green where what's held would go, by the server's own rules, and red where it wouldn't. The edge starts as no colour at all. A slot is a target for anything held but its own item. ImGui begins a drop target for the slot under the mouse, so Fits runs once a frame while you drag, on a copy of a handful of stacks. The edge is our good green when it fits, and the health red when it doesn't. We accept the payload before it's delivered, and ask whether it's being delivered, which is on the frame the mouse lets go. ImGui's own gold rectangle round the target is off, as our edge does that job. A move is made when the item's let go over the slot, and when it fits. So a potion let go over the head goes back to its place, and nothing is sent to the server. With Shift held, half the stack still goes, and the rest stays. The check that an item isn't dropped back where it came from goes, as a slot isn't a target for its own item now. With the mouse over a slot, and nothing held, its edge is gold. Then the theme draws the slot, in that edge. We keep the window's draw list, for what goes over it. What's held is drawn over the slot under the mouse, which would hide that slot's red or green edge. So the verdict goes round the slot as well, three points outside it, a rounded line two points wide, where it still shows. Over it, we write why: what's held covers the slot under it. With an item in it, the item's tint is its colour, and its icon is the item's, or the circled question mark for one this client doesn't know. It goes in the middle of the slot, at full strength, or at a quarter of it on the slot it's dragged from. Its place stays, faint, while it's held, so you can see where it came from. How many there are goes in the bold, at fourteen points, measured first. DrawShadowedText draws it in the bottom right corner, four points in from the right and two up from the bottom, in the paper colour, with a shadow. It's left off the slot it's being dragged from, and on that slot, the held item goes to DrawDragged, under the mouse, at the grab, over everything else. For an empty slot that's worn, SlotIcon gives the icon for its place, like a hat for the head, drawn in the muted colour at three tenths of its strength. An empty slot that's worn shows what goes in it, faint, while one in the bag stays a plain dark well, as any item can go there. A double-click and the tooltip use the hovered flag we kept, and the tooltip waits while something's held. The item's name in it goes in Cinzel, our title face, in light gold, over its lines. Down in Build, the window goes eighteen points in from the right edge of the screen, and a little below its middle. The slots are scaled, with five points between them. The loop's counter is called index now, and six to a row still wrap with SameLine. Each one goes to ItemSlot at the scaled size. And under them, a line says how many of the twenty-four are used, so you can see how much room is left.

27:51 In the character screen's header file, we write over the class what the window has become. It's you, as others see you, on C, standing on a lit stage, with a slot round you for each thing you wear, and your health, experience and where you are under it. The preview's texture stops being square: it's 360 pixels wide and 472 high, the shape of the stage it's shown on, and of somebody standing up. Its offscreen target is made at that width and height. In the character screen, the window becomes a paper doll, which is how most other games lay out what you wear. The slots stand in two columns either side of a stage, with you on it, and who you are goes under it. We bring in array, for the two columns, cfloat, for FLT_MAX, string, and Abseil's StrCat, for the lines under the stage. Font Awesome's icons go, with the lines of text that used them. The sizes are in points, at a scale of one. A slot is fifty-two, like the bag's, so an item is one size in both windows. The gap between the slots, and between them and the stage, is ten, and the stage is 250 by 328, the preview's shape. The preview's camera goes back from four metres to four point two, and up a little, to nought point nine five, still looking at the character's middle. In the taller picture, that shows all of it, from the head to the feet. The left column is the head, the body, the legs and the feet, as a std array of four slots, with its size in its type. That's what's worn on the body, down the left, from the head to the feet, and what's held goes on the right, the main hand over the off hand. DrawStage draws what the character stands on: a glow behind it, from the floor up, and a ring of light on the floor where it stands. A rectangle goes from night at the top to wine red at the bottom, both at nine tenths of their alpha, so the light seems to rise from the floor. The floor's point is halfway across the stage, six hundredths of its height up from the bottom. Six ellipses go on it, from the biggest, a little wider than the stage, to the smallest, a sixth of that, flattened, as a floor is from a little above. Each is ember at a twentieth of its strength, so where they pile up, in the middle, the light is brightest, like the glow behind a slot's icon. Over them goes a thin ring of dark gold, most of the stage wide and flatter than the glow, at eight tenths of its strength. And a brass edge goes round the stage, like a slot's. In Render, the copy of you in the preview is turned by three tenths of a radian, about seventeen degrees, so the figure has some depth to it, instead of facing us flat on. The motion it comes from is set to idle too, along with the one it goes to, so the preview stands idle, whatever you're doing in the world. In Build, the window opens the first time three tenths of the way across the screen, centred there, which keeps it to the left of the bag, on the right. The slot's size, the gap and the stage are scaled to the screen. We start from where ImGui's cursor is, at the top left of the window's content, under its title, and draw on the window's draw list. The stage goes a slot and a gap in from the left, as the left column goes there. That puts the stage in the middle, with the character on it. Its far corner is the stage's size from there, and DrawStage draws it. The preview goes over the stage as an image on the draw list, flipped as before, as OpenGL keeps the rows bottom up. Since the last episode, a preview clears to nothing round the figure, so the stage's glow shows through. The old layout goes: the picture, then the name, the level, the health, the experience and where you are, as lines of text, and the six worn slots in a row under them. A lambda lays out a column of slots. Its column is auto, which makes the lambda a template, so it takes both arrays, though one holds four slots and the other two, which makes them different types. It captures by reference, for the sizes and the action. Each slot goes a slot and a gap below the one before, at the column's x. ItemSlot draws it, as in the bag, so an item drags between the bag and the doll either way. The left column goes at the left edge, and the right one a gap past the stage. The cursor goes a gap below the stage. Under it goes who you are, and how you are. The width is from the left column's edge to the right one's, which the name and the line are centred in, and the bars fill. Your name is in Cinzel, at twenty points, centred, measured first, and drawn in a gradient from light gold to gold, as the titles are. Under it, a line says your level and the land you're in, such as Level seven, in the Meadows. It's set in the text face, at fifteen points. It's measured too, so that DrawShadowedText can centre it in the width, two points below the name, and it's in the muted colour, as it matters less than the name. The bars go twelve points below that line. Health goes first, with its numbers put into words, and DrawBar, from the theme, draws it eighteen points high and the whole width, in red, with the numbers in it. Its share is zero while the most health is zero, which keeps a division by zero out of it. Experience is put into words too, and its bar goes six points below the health's, as tall. Its share is your experience over what the next level needs, kept from dividing by zero as well, and it's in dark gold, with a darker brown for its foot. Last, the cursor goes to the bottom of the bars, and a Dummy four points high takes up the width. The window takes its size from what's in it, and what's drawn on the draw list doesn't count, so the Dummy, an item that's nothing but its size, tells it how far down the doll goes.

33:27 Let's drag some items around in the game, at this step. The character window is a paper doll now, with the worn slots down both sides of a taller preview. A potion dragged over the head slot lights it red, so it goes back to the bag, and the server isn't asked at all. The cap dragged into an empty slot of the bag lights it green, and comes off, and dragged back over the head, it's green again, and goes on.

Throwing away

33:55 In the bag window's header file, the bag still has a window of its own, which the I key opens and closes. And now, an item dragged out of the bag, or off the player, and let go of over nothing, is thrown away, once the player says so. So the window is built each frame, open or not, as an item can be dragged off what's worn while the bag is closed. A private function, BuildThrowAway, asks whether to throw away what's at throwing, and returns the action if the answer is yes. Throwing is an optional place, the slot of the item we're asking about, and it's empty while there's no question. In the bag window, an item let go of over the world, out of any window, asks whether to throw it away for good, and says how many would go. Most other games throw items away like this, and the right-click menu's Throw away stays, on the slots of both windows. Build starts with its action now, as an answer can come while the bag is closed. If the player's holding an item, and the left button has just come up, and the mouse isn't over any of our windows, the item was let go of over the world. So we keep its place, from the bag or what's worn, in throwing. While a drag holds the mouse, ImGui doesn't count a window as under it, so without the flag that allows it, a drop onto a window could look like one over the world. Above it, we write what it's for: let go of over nothing, it's thrown away, once the player says so. While there's a place in throwing, BuildThrowAway asks, and the action it gives back is the one Build returns. A closed bag returns that action now, not nothing, and the old declaration further down goes. The line under the slots says how many are used, as before, and then that an item can be dragged out to throw it away, as a player looks there first. BuildThrowAway takes the bag, as it asks about what's in the slot now, not what was there when the item was let go of. It finds the stack at the place in throwing, and that stack's item in the table. If the slot's empty by now, as when the server's bag changed in the meantime, it forgets the place and asks nothing. The question goes in the middle across, and a little above the middle down, at forty-two hundredths of the screen's height. It's put there each frame and can't be moved, as it waits for an answer, and isn't something to arrange. It's one of our panels, titled Throw away, with a question mark, fitting its words, and its place isn't saved between runs. Its close button sets open to false, which keeps the item. The question names the item, or says this item, for one the client doesn't know. For a stack of more than one, it says how many, all seven of the bones, say, so that a player who meant to throw away one of them knows the whole stack goes. Under a little space, Throw away is the button in the colours of a fire, as it's what the question is for, a hundred and fifty points wide. Its click makes a destroy action for the place, as the right-click menu's does, and closes the question. Keep it goes beside it, as wide, and closes it too, and so does Escape. Once it's closed, either way, the place is forgotten, and the action goes back to Build. In the menu, the keys' page gets a fifteenth row, so its array's size goes up to fifteen. Dragging an item out of the bag isn't a key, but the keys' page is where a player looks to find out what they can do.

37:13 Here's throwing away in the game, at this step. The bones dragged out of the bag and let go over the world ask whether to throw away all seven, for good, and Throw away empties their slot.

Before the server answers

37:27 Each move of an item goes to the server, and on a slow connection, the item would sit where it was until the answer came. So when we let go of an item, the client makes the move on its own copy of the bag, by the rules it now shares with the server, and shows it at once. The move goes to the server as before, and once the server has made it, the bag it sends back is at a new revision. Then the client drops its own copy, and if a second goes by without one, as when the server refused, the client puts the item back where the server says it is.

37:59 In a new header file, predicted bag, which holds the bag as the client expects it to be, we bring in cstdint, for the revision's width, and optional, for a copy that's there or not. Then our items, for the table of items, and the protocol, for the bag's message. PredictedBag is the bag a step ahead of the server. What the player just did with an item is done at once to a copy of the bag, by the rules the server keeps, so an item lands the moment it's dropped, instead of a round trip later. Once the server's bag comes at a new revision, that's shown instead. If it doesn't come in time, as when the server refused, the copy goes, and the item's back where the server has it. Our patience is a second, which is several round trips on most connections, and short enough that a refused move doesn't stay on the screen for long. Over it goes its unit, which is seconds, as a float doesn't say. The constructor is explicit, like our others, and keeps a reference to the item table, which main's content owns for as long as the client runs, so there's no copy of it. Shown is the bag to draw, given the server's and the seconds the frame took: ours while we're ahead, or the server's. Act, which goes with each action we send, takes what the player asked for, and does it to the bag that's shown, if the rules allow it. And ahead says whether we have a copy, which the tests check. In private go the table, the copy, as an optional bag, and the server's revision when we went ahead, and how long we've waited since, in seconds too. Keeping the server's revision is enough to tell when its answer has come, as each change to a bag takes it to its next revision, so we don't compare whole bags. In predicted bag, we bring in Abseil's status, which the rules answer with, and the server's inventory, the class that holds the rules, which the client already links to light the slots green or red. Shown takes the server's bag and the frame's seconds. While we're not ahead, it hands back the server's bag. Otherwise, it adds the frame's seconds to how long we've waited. Counting the seconds we're given, instead of reading a clock, lets the tests move time on without waiting for it. If the server's revision isn't the one we went ahead of, the server's bag has changed, and it's the one to trust, so the copy goes. The copy goes too once we've waited past our patience. Otherwise, the copy is what's drawn, with the move already made. Act starts from the copy, if there is one, or else the server's bag. It's on top of what's shown, so that two quick moves both show, instead of the second undoing the first on the screen. Its status starts as OK, and a switch on the kind of action fills it in. A move is the rules' Move, from one place to another, with its count, which is half the stack with Shift. Using an item takes one off its stack in the bag. The healing is left to the server, and so are a potion's cooldown and whether you're at full health, which the bag's rules don't know about. So a use the server refuses shows one fewer potion for a second, and then puts it back. Throwing away is the rules' Destroy, which empties the place. An action with nothing set returns at once, as there's nothing to do. If the rules refuse it, the bag on the screen doesn't change, as Act returns before keeping anything. When we weren't ahead already, we keep the server's revision, as that's the bag this move started from. Then the copy is the bag with the move made, and how long we've waited starts again from zero, so each move gets a full second of patience. In the client's CMake file, predicted bag goes into the core library, and its test into the tests.

41:35 Now, let's pin that down with a few tests, as a prediction that's wrong is worse than none: an item would jump about, or sit where the server hadn't put it. In predicted bag test, we bring in our header, cstdint, for the item ids, the content, to read the items, gtest, and our places, for the slots. Items reads the real content, from the folder CMake hands the tests, so the rules work on the real sword and potion, with their real slots and stack sizes. A table made up in the test could drift from the content, and pass while the game's items behave differently. Of makes a stack of an item, of one by default, with its count set. The sword is item one in the content, which is worn in the main hand, and the potion is item two, which stacks up to ten and isn't worn. Move makes an action that moves what's at one place to another, the way the bag window builds one when an item's dropped on a slot. It sets where the move is from and where it goes to, and leaves the count at zero, which takes the whole stack. The first test moves an item at once, until the server's bag comes. The server's bag is at revision four, with the sword in the first slot, and we move it to the sixth. Before the server's answered, the sword's where it was dropped: fifty milliseconds later, the first slot is empty, and the sixth holds the sword. Then the server's bag at the next revision, five, takes over. Its answer has the sword in the sixth slot, where we put it. What's shown is at revision five, and we're not ahead any more. That's what prediction is for: the move shows at once, and gives way to the server's bag as soon as it arrives. The second puts it back when no answer comes, which is the case our patience is for. It starts like the first, from the server's bag at revision four, with the sword moved from the first slot to the sixth. As when the server refused, the bag's revision stays at four, and a tenth of a second past our patience goes by. The sword is back in the first slot, and the sixth is empty. Without this, a refused move would leave the item where the server doesn't have it, until the bag changed for some other reason. The third checks that the copy does nothing the rules refuse, as the server is going to turn such a move down, and the screen would show an item where it can't go. This time, three potions sit at the start of the bag, and we try to move them onto the head. A potion isn't worn, so it can't go on the head, and after asking, we're not ahead, so the screen shows the bag as the server has it. Its valid twin moves the potions into an empty slot of the bag, and that goes ahead. That shows the refusal is down to the head, and not to something else about the potions, such as the table missing them. And last, a test of using an item, which starts from a fresh table, predicted bag and server's bag, like the others. Three potions sit in the bag's third slot, which is slot two, as slots count from zero, and a use action names the slot to take one from. Before any time has gone by, the bag that's shown has two left there. A potion drunk in a fight should come off the stack the moment you use it, instead of a round trip later.

44:43 In the client's main, we bring in the predicted bag's header, and make one after the player frame, with the content's items, which live as long as main does, so the reference it keeps stays good. Each frame, the bag to draw comes from Shown, with the server's bag and the frame's time from raylib. Over the line goes what that bag is: the bag as it'll be, with what we've just done in it already. The character screen and the bag window both draw that bag, and light their slots by the rules against it, so a second drag is judged by where the first item landed. And when either window asks for an action, it's sent to the server as before, and then it's done to the predicted bag too.

Before the world

45:23 Now, the screens before the world, as they are. The login is ImGui's window, on a plain light blue screen. The worlds are a table, and the characters a list beside the preview. They work, but they're the first thing a player sees, and they look like a tool.

45:38 In the theme's header file, we add two pieces for the screens before the world to share. DrawBackdrop takes a draw list, the size of the screen, and the time. It draws the dark of a fire gone low, red at the bottom, with embers rising through it, and darker at the edges. The time is in seconds, which the embers rise by. DrawLogo takes a draw list too, the point at the top of the name's middle, and a size. It writes the game's name in gold capitals, with a glow behind it. In theme, we bring in cmath, for sines and remainders, and cstdint, for unsigned thirty-two bit numbers. In an unnamed namespace, Scatter turns a seed into a number from zero to one that looks random, and a seed gives back that number each time we ask. It's a small integer hash, made of shifts, exclusive ors and multiplications. It folds the high bits into the low ones, multiplies by a large odd constant, does both again, and folds once more, so that seeds next to each other come out far apart. The low twenty-four bits are then divided by their largest value, as that's what a float holds without rounding. The standard library's random engines keep a state, so we'd have to store ninety embers and move each of them along. With a hash, an ember is worked out from its number and the time, and the backdrop has nothing to keep between frames. DrawBackdrop starts with a gradient over the whole screen, from night at the top to a very dark red at the bottom. The fire's glow comes from just below the middle of the bottom edge, so its brightest part is off the screen. ImGui's draw list has no round gradient, so we stack ten ellipses, from the largest down, each crimson at four and a half percent. Where they overlap, towards the middle, the glow builds up, and its edge fades out softly. Then come the embers, ninety of them, each rising at its own pace, drifting, and flickering. For each, the seed is four times its number, so it has four seeds of its own: for how fast it goes, where it starts, where it is across, and its size. Its speed is between three and ten hundredths of the way up a second, so it takes from ten to thirty-three seconds to cross the screen. How far it has gone is its speed multiplied by the seconds, plus its start, and fmod keeps what's after the point. So once an ember is past the top, it starts again at the bottom. Across, each has its place along the width, and a slow sine sways it fourteen points to either side, with its number as the phase, so they don't sway in step. Up the screen, it goes from a little below the bottom edge to a little above the top, so it comes in and leaves out of sight. Its radius is between one point and a little over three. Its flicker is a faster sine, about once a second, between a fifth of its brightness and all of it. Its alpha is the flicker times what's left of its rise, so it's brightest low down, and gone by the top. The larger half are ember red, and the smaller half flame orange, as the colour reads the size's seed. Each is drawn twice: a faint halo three times its radius, and the ember on top of it. Last comes a band of shade along the edge, a quarter of the screen's shorter side wide. It makes the screen darker at the edges, so that the eye goes to the middle. Its dark is black at six tenths of its strength. A gradient over four corners goes down the left side, from the shade on the outside to nothing on the inside. Then another goes down the right, and one across the top. It doesn't go along the bottom, where the fire's glow is. DrawLogo sets the name in our title face, Cinzel. The name is a constant, and it's measured at the size, so that it can be centred on the point. The glow's middle is a little over halfway down the name. It goes behind it, like the light of the embers on it. That's six ellipses, from the largest down, reaching three quarters of the name's width to each side, so it spreads past the letters, each in ember at three and a half percent. Then the name goes on, from light gold at the top of its letters to dark gold at their foot, with the gradient text from the last episode. Under it goes the divider that our panels have under their titles, a fifth wider than the name.

49:45 In the login screen's header file, the class now draws its three screens over embers rising in the dark, under the game's name. The preview grows to seven hundred and sixty by a thousand and twelve pixels, the stage's size on a 4K screen, so it's sharp there too. In the login screen, all three screens change, and the corner plays them in turn: the login is one of our panels, under the game's name, over the embers. We bring in cfloat, for the float limits that ImGui takes as no limit on a text's width, and as a field the window's width, and the theme. The panels' flags change, so a panel can't be moved or resized, and ImGui keeps nothing about it in its settings file. Next, kBare is for windows without a title bar, moving, a background, saved settings or keyboard navigation, and a click on one doesn't bring it in front of the panels. They're nothing more than a place to draw in, and to take the mouse. The version's margin goes up to fourteen, in points now, from the corner of the window. An error wraps at the panel's edge now, as our panels have a set width, and a long one would be cut off. Row draws a row to pick, and it takes an ID, the name, the line under it, whether it's picked, and a place to say whether it was a double click, which can be left out. A row is fifty-eight points high, and as wide as what's left of the window. An invisible button that size takes the clicks, and says whether the mouse is over it. When we pass twice, it's set while the mouse is over the row and ImGui has seen a double click. The row's corners come from the button, and it draws on the window's draw list, over the panel. A picked row gets a gradient, crimson at a little over half its strength on the left, fading to a faint wine on the right. A bar of ember, three points wide, goes down its left side, and a thin outline of dark gold goes round it. A row the mouse is over, and isn't picked, gets wine at a little under half its strength. The name goes fourteen points in and eight down, in Cinzel at eighteen points: light gold to gold while it's picked, and paper to muted while it isn't. Under it goes the line, in the text face at fifteen, muted, with a shadow. Above Row, we say what it's for: a row to pick, as a world or a character is, its name in carved capitals, with a line under it, lit while it's picked, with an ember's edge. It returns whether it was clicked, and sets twice when that was a double click. Build draws whichever screen we're on, from the screen's size. The backdrop goes first, on ImGui's background draw list, which is drawn under all the windows, with ImGui's time in seconds for the embers. Then we check whether we're on the characters' screen. The game's name goes high up, and smaller over the characters, which need the room. DrawLogo puts it in the middle, ninety-two points high, or forty-four points high and near the top. The old lines that placed the version with ImGui's main viewport go, along with the window's place in the middle. The version is in our text face now, at fourteen points, and it's measured at that size. It goes fourteen points in from the bottom right corner of the screen, in the faint colour. In BuildAccount, ImGui's window goes, and we take the screen's width and height, to put the login in the middle across, and a little lower than halfway down, under the logo. It's three hundred and eighty points wide, and its height is zero, which ImGui fits to what's in it. BeginPanel draws it as one of our panels, titled Your account. The name gets a label above its field, in muted text, and the field takes all of the width, which is what minus FLT_MIN means to ImGui. Its own label is hidden behind two hashes, so ImGui doesn't draw it beside the field. The password gets a label and a field like it. Log in is the screen's main button, in the fire's colours, across the panel, and Enter in the password still logs in. Make an account goes under it, in the dark red. The icons go, as our buttons write in Cinzel, and Font Awesome's icons are merged into the text face. BuildWorlds takes the screen's width and height too, and goes in the middle across, a little lower than halfway, like the login. It's a hundred points wider, and BeginPanel titles it Choose a world. It still refreshes as it appears, or on F5, and the arrow keys still move the pick. Each world's line says how many are playing. If you have characters there, it says how many of them are yours, and it says other content when its content isn't this client's. They were up to three bits of grey text with icons, side by side, and now they're one line under the name. Each world is a row, lit while it's the one selected. A double click on it picks it and goes on, as Continue does. Under the rows, three buttons share the width: what's left, less the spacing between them, in thirds. On the left, Log out takes you back to the login. Refresh goes in the middle, and asks the login server for the worlds again. Continue goes on the right, in the fire's colours, as it's what the screen is for. In BuildCharacters, the window that held it all goes, and the screen is put together from four windows instead, placed by the screen's size. The old group on the left goes, with its heading. Back to the worlds goes in the top left, twenty-four points from the corner, as a button in a bare window that fits it. The stage is three hundred and eighty points by five hundred and six, the preview's shape. The one picked stands on it, in the middle, to turn and look at. It's centred at forty-two hundredths across and halfway down, which leaves room for the characters' panel on the right. Its window goes at its top left corner, and it's as big as the picture, plus ninety points under it for the name. The padding is pushed to zero for it, so the picture starts at its corner, and popped straight after, so it doesn't reach the windows that follow. While there's a character, the stage draws on its window's list. We work out the stage's far corner, and the floor, in the middle of it, a little above its bottom edge. It gets a pool of light, with the fire's glow behind. The glow is eight rings, filled, from the largest down, centred four tenths of the stage up, and a little wider than the stage, each in crimson, a little fainter than the backdrop's. The pool on the floor is five flat ellipses of flame, four times as wide as they're tall, at seven percent each, so the middle is lit the most. A ring of gold at seven tenths, a point and a half thick, goes on the pool, as the edge of the floor. The cursor goes to the stage's corner, and an invisible button covers the stage, for turning and zooming. The preview's picture goes over it, as an image from one corner of the stage to the other, flipped. OpenGL keeps the rows bottom up, so the UVs turn the picture over. A drag turns the character as before, but divided by the interface's scale. That way, a drag across the stage turns it as far on a big screen as on a small one. The mouse wheel still brings the camera closer or further, between two point two and five point five metres away. We take the title face for the character's name, which goes under it. The name's size is thirty points, the biggest words on the screen after the logo. It's measured, so that it's centred under the stage, six points below it, and it goes from light gold to gold. Under the name, a line says its level and the land it's in, put together with Abseil's StrCat, which joins its pieces into one string. The line is in the text face, at seventeen points, and it's measured and centred too. It's muted, with a shadow, as it matters less than the name, and the stage's window ends there. The characters' panel goes by the screen too, forty-eight points from the right edge, with its middle a little above halfway down. It holds the characters, and a new one, on the right, and it's three hundred and sixty points wide. Its title is the world's name, and three hashes give the window an ID of its own, characters, so it stays one window whichever world we're in. It asks for the list again as it appears, back from the world or in from the worlds, so the list is as it is now. Each character is a row, with its level and its land under its name. Under the list, ImGui's separator with words in it says A new character. The name field takes the whole width, with Their name as its hint. Make them is a button across the panel, which makes a character with that name. The error shows in the panel now, under it. Into the world goes at the bottom, with a way to delete the one picked. From the old group on the right, the preview goes, with its name and its line, as the stage has them now, and the hint under them goes too. Its window goes by the screen's size, centred under the stage, thirty-six points up from the bottom. It's a bare window, which fits its buttons. The icons go from the buttons, as they did from the others. Enter the world is the biggest button on the screen, three hundred by fifty-two points, in the fire's colours. Pressing Enter still enters too, while you're not typing a name. Beside it, the cursor moves nine points lower, which is half the difference between the two buttons' heights, so that their middles line up. Then comes Delete, a smaller button, in the dark red. The question to delete for good stays, in orange. Delete is in the fire's colours, with Keep beside it, a hundred and forty points each. The old ends go: the back button at the bottom, and the error, which is in the panel now.

59:14 Here are the screens before the world, at this step. The login is a panel under the game's name, over embers rising in the dark. The worlds are rows, and our characters are rows beside a stage, where the one picked stands in a pool of light. And Enter takes us into the world, as before.

Loading and dying

59:34 The loading and death screens are next, as they are now. The land's name fades out in plain dark letters, and a character with little health left doesn't last long by the skeletons. So here's the death screen too: the world darkens, with plain words, and ImGui's button counting down to coming back.

59:53 In loading, we bring in the theme, as the loading screen gets our faces and colours too. It still covers the world in the sky's colour until the land is built, with a name in the middle and a line under it. The lines that picked dark or light words, from how bright the sky is, go, along with the old faces and sizes. The words' alpha is the cover's times one and a half, held at one. They stay a little longer than the sky behind them, on a dark band across the middle, so that they read on a light sky and a dark one. The band's middle is forty-five hundredths of the way down, and it reaches a hundred and ten points above and below it. Its dark is night at seven tenths, times the words' alpha, so it fades with them, and it's clear at its edges. It's two gradients, one from clear above to dark at the middle, and one from dark back to clear below. The title goes in the title face, at fifty-eight points, in place of the default font scaled up. It's measured, and its top goes up from the middle by three quarters of its height, so the band is darkest behind the lower part of the letters. It's drawn in gold, from light at the top of its letters to dark at their foot, faded by the alpha. Once the words are whole, a divider goes under them, four points below, and a fifth wider than the title. The divider takes no alpha, so it waits until the words are at full strength, instead of fading with them. Then we take the text face, at twenty points, for the line that goes under it. It's measured too, and drawn with a shadow, centred, fourteen points below the title, in paper, at a little under the words' alpha, as the old line was too. The death screen is next, and the corner shows a short fight that ends on it, in our theme. In the death screen, we bring in the theme. The button grows to two hundred and sixty points by fifty, and the scale multiplies it where it's used. Build draws on ImGui's background list, over the darkened world and under any window. A band three tenths of the shorter side of the screen wide is for a red that comes in from the edges. It's wine at seven tenths on the outside, and clear on the inside. It goes down the left side as a gradient over four corners, fading out towards the middle, then mirrored down the right, and the top and bottom are left alone. The words, You died, go in the title face at seventy-two points. They're measured, so that they're centred across, a fifth of the way down the screen. They go from a light red at the top of the letters to crimson at their foot. A divider goes under them, a fifth wider than the words. The window with the button goes thirty points under the divider, centred, and it has no background now, so the button stands on its own. The old title lines go, which scaled the default font up and centred it over the button. The countdown stays, in whole seconds, rounded up. The button is a GameButton now, in the fire's colours, at the scale. It's disabled until the wait is over, so it's dimmed while it counts down, and a click does nothing until then.

1:02:52 Here they are in the game, at this step. The land's name fades out in gold, over a dark band. Low on health, by the skeletons' home, the fight is a short one, and dying shows its words in carved red capitals, with the countdown on one of our own buttons.

Wrap-up

1:03:09 So, today, the hotbar got slots of brass, and skills that swap when dragged, in an order the settings keep. The chat closes into a button that counts what we missed. Items drag as themselves, checked by the server's own rules, and a move shows at once, before the server answers. The screens before the world got the embers and the game's name, and the loading and death screens got our title face, in gold and in red.

Playing it

1:04:28 Let me know in the comments what you'd like to see next, and if you want to follow along with the series, subscribe to the channel. I hope you find this useful, and thanks for watching.