(This question is a bit similar to this question, but that question specifically asks how to implement a height ceiling/collision mechanically, and this is more of a design question rather than a programming one. It's also similar to this great question, but my situation is more specific to the "challenging them to get past the wall" scenario, and that question is now five years old, so hopefully this question is different enough to be allowed.)

The situation

I've been working with my dev friend on a small 2D tiled game prototype that has X, Y, Z coordinate axes, allowing players to travel in the four cardinal directions as well as "fly" upwards and downwards along the Z-axis. (Think something akin to Dwarf Fortress, with a 2D map that incorporates terrain height and the ability for winged creatures to fly on the Z-level.) The theme of the game is "breaking boundaries," which naturally opens up the door for design questions about how to creatively implement boundaries and allow the player to bend or push past them to create fun.

Obviously, when you have a system where the player can travel freely on an XYZ axis around a world of limited size, there needs to be an eventual limit on two things:

  • how high the player can fly up or down in the Z direction, and
  • how far they can move in the X and Y directions.

This is both to preserve computing resources and to prevent the player from quite literally getting themselves lost in the sky or the void. As the Dwarf Fortress wiki sagely notes:

The default settings produce levels with around 50 z-levels of land... Reducing the number of z-levels, especially cavern levels, can reduce processor demand and boost framerate.

However, in my situation I want the player to be fully able to try and travel past the game's "boundary limits," and to reward and challenge them for doing so. This matches the general theme of what I eventually want the game to be - a game of "breaking boundaries." I want to come up with a creative way to both justify the world's boundaries mechanically, and make hitting that limit exciting and a challenge for the player to solve, even if there really is a "cap" that they can't get past in the end.

How other games solve this problem

Most games solve the problem of "how to stop the player from wandering too far" with invisible walls - that is, placing invisible walls at the world boundaries and placing an invisible ceiling over the world at the maximum height cap, and mechanically forbidding players from going beyond those world boundaries, without much of a mechanical game explanation for it.

Invisible wall in Fallout

The "invisible wall" approach is undoubtedly the easy way to go - but hitting an invisible wall is a surefire way to annoy players and break immersion, and judging from mods existing specifically to remove them, I don't think this is the most enjoyable option. As I said, I want to make hitting the boundary fun and challenging for the player, instead of a "bummer" experience.

Subnautica, on the other hand, does the idea of world boundaries in a really creative way, and that's the kind of idea I want to emulate. Instead of outright stopping you from going beyond the world boundary of Crater's Edge, you instead get a creepy "Warning: Entering ecological dead zone" message on your PDA, followed by a close encounter with these genuinely horrifying monsters that haunt my nightmares:

Ghost Leviathans from Subnautica

You can technically defeat these monsters, but it's a crazy, terrifying challenge - and that's not the point of this encounter. The point was to make hitting the boundary exciting and memorable, and it obviously worked, since I've seen tons of screenshots and videos of cool encounters with the Ghost Leviathans on the world borders. That's exactly the kind of thing I want to emulate in my own game - a sense of excitement and danger from hitting boundaries, rather than boredom or bumming the player out.

The question

What are some other interesting, unique mechanical ways to "make boundaries fun" and use them to challenge the player? I'm specifically looking for ideas that apply to my situation of a 2D world with XYZ axes, but any general design ideas you have for tackling the "invisible wall" problem from this angle are welcome.

  • 2
    \$\begingroup\$ The legend of icarus might provide some inspiration for breaking boundaries but also facing the consequences. \$\endgroup\$
    – Adam B
    Nov 2, 2021 at 2:47

1 Answer 1


Make the game more difficult the further the player gets away from the world origin.

Player progression in form of new abilities, numerical advancements or just improvement in player skill might allow the player to venture out further. The final boundary of the game would then be the point where survival does not just become difficult but actually mathematically impossible.

Subnautica is actually a great example of this technique. But I am not talking about the horizontal exploration limited by the ghost leviathans the YouTubers like so much. I am talking about the downwards exploration with dive depth.

The game puts several boundaries on how deep the player can explore, and then breaks those boundaries. The first is how long the player can hold their breath. They have to return to the surface every few seconds, so there is a boundary on how deep they can explore. Players can extend that boundary by some tricks. Like carrying multiple oxygen tanks or using air pipes. Or they can do it by skill: Just be more daring and quicker in their exploration. But there is still a limit on how far the player can reasonably be expected to go in this phase of the game.

This boundary gets stretched when the player unlocks various numerical upgrades. Like higher oxygen capacity or faster swimming. This increases the exploration depth, but not by much, because it doesn't solve the fundamental problem that the player can't stay away from the surface as long as they want to.

The real boundary breaker is unlocking vehicles which can dive and supply the player with unlimited oxygen while doing so. But those vehicles also have a maximum dive depth (which can also be extended by progression). They serve as a base of operation for the players diving activities, so the same soft limits apply as those during the time where they had to go to the surface. Just with an additional x meters of depth provided by the vehicle. Also, vehicles can go deeper than their dive depth, but then they take continuous damage. So a daring player can stretch that limit a bit further, but not infinitely.

This is a technique you can use:

  • Have a "safe" exploration radius around the player base
  • When the player leaves the safe exploration radius, confront them with hazards or obstacles which allow them a bit of exploration beyond it, but still force them to return rather quickly.
  • Add ways of player progression which extend the safe exploration radius by mitigating those hazards or providing tool to overcome the obstacles. This in turn makes more content available, which then allows to unlock more player progression, and so on.

What obstacles, hazards and progression upgrades could that be? Sorry, but we are not going to design your game for you. We don't know your game and we can't know what you would or would not find thematically appropriate.

  • \$\begingroup\$ This is an awesome reply, especially as compared to Subnautica's depth limit and other Metroidvania-style progression caps as you try to explore further out. Slowly unlocking more of the world over time to break barriers in the player's mind is a great technique. Thank you for the thoughts! \$\endgroup\$
    – Sciborg
    Nov 2, 2021 at 16:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .