Saturday, 15 June 2013

overlapping-input competitive-multiplayer touchscreen games

An interesting thing that's been happening with local multiplayer videogames is the exploration of interactions that happen outside of the computer. I wrote a bit about this before when I released O. Wide range of stuff, from J.S. Joust to Fingle. I'm particularly interested in touchscreen multiplayer - devices like the ipad are ideal for playing games together, being portable enough to take places but large enough for more than one player to comfortably interact at the same time.

The key idea is that the software doesn't know whose finger is whose. This rules out some possible games you might want to make; often we would like to be able to tell. If you're to do a single-screen genre-RTS with each player dragging to move their own units, you're probably going to want to network it - if not you'll be getting in each other's way and interfering with each other's controls (whether by accident or intent). (Possibly you could constrain the design to work with each player only touching one side of the screen while sending units over to the other side, Shot Shot Shoot-style, but in this case beware of the "wandering hands" effect.) But we can embrace this interference in our designs, it enables a new type of game.

Now, I suspect the natural response of many game developers to this is to view it as a "gimmick", a cute but shallow feature. I believe that it's not a gimmick. Several fundamentally different games have already been made using this concept, and I suspect that more possibilities exist. This is a potentially rich vein of design to explore further.

Chicanery is one of the simplest possible games to use this concept. The digital side of the game offers no way to win, only a way to lose: letting go of your button. So players must somehow persuade their opponents to let go. I'm honestly pretty scared of playing it.
A lot of potential designs in this space end up feeling like "essentially the same game as Chicanery": the game is decided by a physical wrestling match, and victory in the digital realm is purely a formality. I would like to avoid this for the simple reason that we already have Chicanery.

Finger Battle doesn't explicitly use this concept. Each player presses their side of the screen as many times as possible; whoever presses the most times wins. There's no overlap in inputs, no benefit in touching your opponent's side of the screen - but of course you can convert it into Chicanery by trying to prevent your opponent touching the screen while still pressing yours. Again this is a design sink - a lot of potential games essentially reduce to "press stuff as fast as possible"; let's try to avoid it.

Ready Steady Bang also doesn't use this concept, but is worth mentioning because its idea shows up later as a component of larger systems. It's a quick-draw western-themed game; players compete to be the first to touch the screen after a signal "ready, steady, bang!". The important difference here is that it demands attention; players must react to something that happens on the screen in a way that they didn't in the previous two examples. What this means is that if you Chicanerise it there's still a chance that the physically weaker player can win - by paying closer attention and managing to sneak through and press at the right time despite their opponent restraining them. This is a significant enough effect that most players will not attempt to wrestle at all.

Next in the complexity hierarchy is a hypothetical game that I don't believe anyone has released (though I briefly prototyped it during O's development). Call it "Touchscreen Snap". Pieces appear on the screen (demanding attention), and players compete to be the first to touch them (indicated by dragging them to their side of the screen, since the program doesn't know who owns a finger). This results in some physical conflict, because even if players don't actively fight each other their hands will often collide as they race to grab the same pieces. Essentially this is Ready Steady Bang with overlapping input domains.

In Circulets, pieces appear in each player's colour on their side of the screen, and players compete to collect them as fast as possible (by dragging). It is mostly a variation on Finger Battle, with a small amount of extra attention required to drag pieces from random positions rather than blindly pressing. Additionally, an occasional green piece appears in the centre which is valuable to either player - like a momentary round of Touchscreen Snap.
(There appears to have been some attempt to deepen it by making pieces worth -1 point when collected by the wrong player, but since this is an effective loss of one point for both sides there is no incentive for either player to ever do it. I'm not sure what the intent here was, but it seems poorly thought out.)

Bloop is similar to Circulets, with each player tapping pieces of their own colour. Since pieces are colour-coded it's sufficient to just touch them - no need to drag to tell the program who you are. It's greatly enriched over Circulets by the pieces being randomly intermingled across the screen rather than reliably sorted on each side: significant attention is required to touch as much of your own colour as possible while avoiding touching the others. (Note that Bloop preceded Circulets chronologically; I've just ordered them here to suit my exposition.)

Bam fu is kind of a variation on Bloop, with each player pressing pieces of a particular colour across the screen. But rather than appearing randomly, the pieces are fixed in place and just change colour when pressed according to a predictable cyclic sequence. This makes the attention element much deeper - you can predict where your colour will show up by watching for when other players press theirs. It really comes into its own with more than two players, subtly strategising to manipulate the flow of colours towards you while preventing anyone else from winning.

O has the attention element of collecting randomly-appearing coloured pieces. But rather than the colours matching the players, they feed into a set-collection scoring system: each piece of the same colour you collect in sequence is worth an extra point. Collecting a different colour breaks your sequence, which demands extra attention and avoids some of the weaknesses of Touchscreen Snap, and also creates an incentive for your opponent to sometimes force pieces onto your side of the screen. O also gains some depth from basic physics - flinging balls across the screen, bouncing them off each other, holding them in place to block others.

Slamjet Stadium has a ball that both players want to collect, but avoids Touchscreen Snap-style hand-collisions by making that something you can only indirectly interact with. There's a second kind of piece which you fling at the ball to push it around, and very rarely do you have a first-order desire to touch the same piece, because you want to push the ball from opposite sides (there may be a second-order desire to prevent your opponent doing what they want, but that's a lesser effect).

Greedy Bankers starts with an already-complex single-player game and encourages just a bit of cross-screen interaction by valuing pieces higher if they've been moved across the centre of the screen.

Centrifeud has separated inputs most of the time, but is occasionally spiced up with a powerup asking players to touch their piece - like a momentary round of Bloop.

A Bastard (touchscreen version currently unreleased) has players navigating a maze with tank controls that creep across the screen and sometimes overlap - encouraging players to press their opponent's buttons as well as their own. It feels a lot like Glitch Tank (which was an inspiration) in that you must strike a balance between planning carefully and acting quickly - but your plans may involve moving your opponent as well as yourself.

I played an unreleased prototype by @grapefrukt of a game where players tap Pipe Mania-style tiles to rotate them, attempting to join up a network of pipes in a way advantageous to them and disrupt their opponent's network. Feels very different to any of these other games.

(Fingle deserves a mention too though it's not competitive. Physical interactions obstruct digital goals; the challenge comes from your fingers getting in each other's way. The game intentionally provokes physical contact.)

I hope it's clear from these examples that very different games already exist using the "players interact on the same screen" concept, and that there's likely to be room for more that we haven't found yet. They share some common challenges and constraints - in particular, a need for a strong attention cost if they're not to degenerate into Chicanery - and many of them share some common ideas, but they have very different characters. But even the most complex of these are very minimal: what happens if you try to build a more intricate strategic game along these lines? Possibly the inherent messiness puts an upper bound on complexity, but it's worth finding out.

Friday, 7 June 2013

non-linear costs

Following on from last post I'm thinking about the relationship between the numeric cost of an object and how difficult it is to actually acquire in practise. Double the cost of something, does that make it exactly twice as hard to pay? In real life you'd want the answer to be close to yes (though it isn't really; we have feedback effects) for convenience, but games don't need to be convenient - a large part of what games provide is unnecessary obstacles and obscurity. It's easier to intuitively think about linear relationships: if the difficulty of paying costs is non-linear that makes things harder to evaluate, interesting.

Okay first concept is feedback loops. If you can spend resources to increase the rate at which you gain resources (positive feedback), then buying sufficiently expensive things is going to have sub-linear difficulty. Usually games that do this balance it out with an incentive to buy things early - e.g. rushing in an RTS vs. building your economy - because otherwise getting the steepest growth curve will eventually dominate everything else pretty easily. Similarly negative feedback loops make it harder to buy expensive things. In Settlers of Catan when a 7 is rolled any player with more than 7 cards must discard half of them, so there's a risk to accumulating lots: on average your effective wealth ends up slightly less than your apparent wealth.

In Magic you can play one land per turn, a linear constraint. But in practise this is sub-linear, because you can't rely on always having a land card to play. This gives a fuzzy threshold at which spells become harder to cast - you're very likely to be able to cast a 2-mana spell by turn 2, less likely to cast a 4-cost spell by turn 4, and quite unlikely to cast an 8-cost by turn 8 (ignoring mana-acceleration powers).
However since lands in play can be reused each turn, the total amount you can pay grows triangularly - by turn 4 you can have paid a total of 1+2+3+4=10 mana if the individual costs are small enough. (Note that cards are a resource too, which is linearly constrained in turns, so casting one 4-cost spell is cheaper than 2 2-cost because it saves a card.)

Dominion's price structure is quite complex. Because your hand is limited to five cards each turn, buying things that cost more than 5 is disproportionately hard as it requires not just more money but money in larger denominations (or a way to draw more at once). Also what you're able to buy on the first two turns is significant: you can definitely buy something costing ≤4 on the first or second turn, something costing 5 you have a 1/6 chance of being able to buy, and ≥6 is impossible (without a few specific expansion cards).
Also there's a default limit of buying one card per turn, which means with 4 money you can't buy two 2-costs - unless you've played a card that allows extra buys. So a lot of the time the actual numeric cost doesn't matter if it's below the threshold of 5; it only makes a difference if you're somehow very short on money or you have extra buys. This is the reasoning for the Chapel costing only 2 even though it's one of the most powerful cards in the game - it's not something you generally want multiple copies of so its power is not significantly increased by being so cheap.

@ostroffj mentioned that the alert costs (the number of enemies spawned when you siphon a wall tile) in 868whatever behave a bit like Dominion's acquisition costs. It's hard to evaluate because the cost of a number of enemies is eventually converted into the currencies of turns/hp/energy/credits but the exact rates depend on which enemy types spawn and where, the layout of walls, how you choose to deal with them, and other random elements. But in general below 5 you can usually handle unharmed (4 is on the edge) while more than that will usually demand a real cost. And then, like Dominion, you have a limited ability to acquire things and the the distinctions between prices matter if you try to take more than one at a time; 2+2 stays comfortably sub-threshold but 4+4 is highly dangerous.

Mmm still trying to think of examples with more fundamentally different ways of complicating costs.

Thursday, 6 June 2013

non-trivial currencies

A lot of game actions involve exchanging some currency for some other currency or resource. Or, okay, depending on how reductive you want to be you could say that every action is a currency exchange, but sometimes the currencies are complex difficult-to-evaluate concepts like "a good position". But often they're just numbers of a thing - gold, credits, sheep, beans, whatever.

Thinking about different ways in which currencies can operate in real life might give some ideas for ways to make these exchanges more complex. (You don't necessarily want to add complexity everywhere, this is just something to consider).

OK first, look at international currency exchanges. Relative values change over time, which is already interesting to play with: decision-making under uncertainty to try to get the best deal. Shopping around for deals - different money-changers may offer different rates. Maybe there's a fixed fee per transaction so there's an incentive to change a large sum in one go. Obvious complexity.

More subtle is the complexity that can arise within a single currency. Typically we like to imagine you have just one number and bigger is better, but there are different conveniences. Cash vs. EFTPOS: some places won't accept cards; carrying cash is riskier; possible transaction fees. Different denominations of cash; buses which don't give change so you'll overpay if you don't have the exact amount.. basically these are like different currencies that are cheap to change between (but not free, because time has value).
Or someone sends me a cheque and it's such a hassle to actually get around to banking it (plus if I'm in Germany what am I even supposed to do with this they don't use these here anymore).
And since these things are instantiated as physical objects there are different values based on physical properties. Notes or cards weigh less than a bunch of coins, so they're easier to carry but harder to bludgeon with. The raw materials composing them have a value - if the value of a coin's metal ever exceeds the face value of the coin there's an incentive to melt it down and reuse it. Or there can be particular value in specific units - like the giant robot vending machine that only takes quarters (so we traded with a beggar; notes more valuable to him for coins more valuable to us).
Also collectors - someone might value a particular coin more highly because it completes a set for them, by denomination or year.

And hey there's complexity even in directly comparable numeric values, looking at how much relative difference they make. When you're broke finding a note lying in the street affects your situation way more than if you're doing okay; once you can afford everything you need increasing that number further just becomes a way of keeping score.

Some of these situations might be useful to think about when designing games? These types of consideration are used in board games sometimes but rarely in videogames - putting things on a computer makes it easy to treat everything as a number and think no more about it. Just something to think about using maybe I don't know!