Back to all writing

Seven Inventory Slots, One Key and Too Many Things to Interact With

Game Dev Series•Part 25•6 min read•By Mikhil

I used to imagine interaction as a simple command: get close to something, press a key, and watch the game respond. That description remains technically true and almost completely useless once a room contains more than one interesting thing.

The first small inventory in Block by Block gave the player somewhere for items to go. But it also raised harder questions. What if there is a door next to a person? What if an object is on the floor beside a vendor? How does the player know what the game thinks they are addressing? And what happens when they put something down in a world whose ground and collision aren't always trustworthy?

The early experiments were modest. The collision between their responsibilities was not.

An inventory slot is a promise

Seven slots were enough to test item identity, pickup, removal and limits. They did not make a complete loot or equipment ecosystem, but they were already enough to expose the difference between an icon and a thing in the world.

The hotbar also had to remain readable at a glance. Seven slots gave the player a predictable place to see what they carried, but a selected slot with a missing icon or an object rendered in an awkward position could make the state feel uncertain. The world and interface had to agree about whether the item was in hand, on the ground or available for placement. Each little inconsistency undermined the appeal of physical interaction. I wanted the player to feel as though they were handling things in a world, not moving anonymous records between menus.

A seven-slot hotbar sounds like an easy interface to build. Draw seven boxes along the bottom of the screen, highlight the selected one and assign keys. But the moment I let the player carry physical items, each box gained responsibilities. The item needed an identity. It needed to be stored and retrieved without duplicating itself. Dropping it needed a believable location and proper collision. Switching slots had to update what the player appeared to be holding.

The earliest version did not support every imagined inventory system. It was a small collection of carry, place and selection interactions, enough to make the game world more tactile. That limited scope was useful because every extra slot multiplied the number of ways items could be accidentally lost or copied during a change in state.

Picking something up connects the player camera, world geometry, object ownership and the user interface. A held object should not obscure the entire screen. A dropped object should not emerge inside the wall. A saved game should not restore an item both on the ground and in the player's hands.

I also had to decide what 'place' meant for an item. A dropped object should come to rest somewhere consistent with the terrain. A carried object should behave as part of the player's possession without colliding nonsensically with the environment every time the camera moves. A selected hotbar slot should correspond to the visible item state. These aren't glamorous mechanics, but they're central to the sensation of inhabiting a world. I wanted a small reliable system that let players touch a few things, not a giant inventory menu that made the game look deeper than it actually was.

One interaction button, several possible answers

When the same action can apply to a door, a person or an item, target selection becomes a design decision. A correct implementation still feels wrong if it repeatedly chooses something the player did not intend.

One problem with contextual interaction is that the player can only judge it from the feedback they see. If two objects are near one another, the game may have an elaborate internal priority rule, but the person at the keyboard only knows whether the highlight and prompt match their intention. That is why the selection logic needed to be predictable and visible before the key was pressed. It was less important to invent a clever algorithm than to ensure the action was understandable in crowded spaces. The best interaction system is the one people stop thinking about while they explore.

The first-person game relied on a small number of comfortable controls. That was convenient when one person stood beside one parcel. It became harder when a player could stand at a doorway with a character, a pickup and a business counter all within reach. A single interaction key couldn't simply trigger everything nearby. The game needed a way to decide what the player meant.

The answer wasn't necessarily adding separate keys for talking, opening doors, picking up items and buying things. That would make the controls harder to remember every time the world gained a new object. The more interesting design question was how the game selected a nearby target and communicated that choice before the player committed to an action.

A prompt that says 'Talk' should result in a conversation, not open the garage shutter behind the person. An item highlight should not disappear because the player is a fraction closer to a decorative sign. Closing a menu should return control to walking rather than leaving an invisible UI layer in charge of input.

The crowded interaction problem also affected accessibility and pace. A player shouldn't have to make microscopic camera adjustments to activate an ordinary door. If the game constantly chooses the wrong nearby target, a single elegant key becomes frustrating. The prompt needs to communicate the current choice, and the active object should be selected with enough stability that small movement doesn't cause it to flicker between alternatives. That is a convenience feature with real design depth. It is part of why the earliest prototype work couldn't simply be forgotten once the city became more detailed.

An inventory may be small, but it has a surprisingly long list of ways to disappoint somebody: an item appears to vanish, a slot changes without explanation, a dropped object ends up inaccessible, or the interaction focus jumps to the wrong target. Those are not glamorous problems. They are the texture of using the world.

I began to care less about the number of collectible things and more about whether the handful already present behaved consistently. A tiny system that can be trusted is a better foundation than a giant catalog that treats the player like an inconvenience.