This will be part of a series on the moment-to-moment gameplay in the Macroscopic Stage, so basically the gameplay outside the editor.
We do have some ideas on this among the others on the wiki, but these are sparse on details. We also already have threads on this forum in more detail on the macroscopic editor, progression through the Stage, and other topics. But these are not focused on the moment-to-moment gameplay of the “swimming around” section of the game.
A few general points before we begin:
- While the macroscopic stage is not an exclusively “aquatic” stage, considering our stated plans thus far, I think we’ll be in Aware Stage development before we start actually developing terrestrial gameplay. So I will focus on aquatic environments here.
- I will mark in bold any specific “abilities,” “actions” or important activities.
- I will in some cases use specific keys as controls to emphasize that they are specific actions, and to show which other action they might “overlap” with. Of course, these should in reality just be defaults, with customizable key binds.
- I will also mark in underlined any statistic primarily determined in the editor, that is used during gameplay.
General Movement objectives
First I want to talk a bit about the overall feeling of momentum I want to achieve with this system in general.
Inertia
Living creatures, like all physical objects, have mass and momentum. So, there should always be some acceleration time involved when the player hits a movement key. In some contexts, that time may be very short. But even if nearly imperceptible, I believe it still provides a much smoother experience. They should also not instantly be stopping when the player stops hitting a key, they should slow down based on the medium they are in, and the statistics and abilities of the organism itself. I mention this because while our current physics engine already does this as set up, I don’t want for example land movement to switch to a more “instant” movement behaviour as common in RPGs and the like (where pressing a button instantly has you walking at maximum speed).
This is also why throughout this document I speak primarily of acceleration as a stat, and not speed. My hope is that speed is just the natural result of acceleration versus a representation of drag.
Smooth and Step-wise propulsion
Animals also do not move using wheels and jet engines (generally speaking). Why this matters is that a fin or limb can provide acceleration in bursts, as opposed to a continuous smooth force. But also remember the previous paragraph: inertia is important. So while acceleration may happen in bursts, that does mean the actual current speed should necessarily drop to (anywhere near) zero. Though of course, some forms of propulsion are more smooth than others. Given the audience of Thrive, maybe a good comparison is how in Spore’s Cell Stage, flagella give smooth movement, while cilia and jets give speed in bursts. Ultimately, types of propulsion that the creature has access to depends on choices made in the Editor. (For example, the Macroscopic Editor concept provides for different tail types, which determine swimming locomotion)
An alternative approach to keep in mind here is that a lot can be done through “camera” and animation trickery. Even if the creature accelerates in bursts, the camera can smooth out the difference. Similarly, it’s theoretically possible to have delays in movement of the creature’s animation, even if technically acceleration is smoother under the hood.
The objective here is for the movement itself to be a fun experience that feels good. I want players sometimes absent-mindedly looping around some rocks, just because it feels fun. I believe with these general principles that’s attainable, but it will require a lot of tuning through trial-and-error on both the physics numbers and the animation to get there.
While writing this, I found it easier to discuss swimming before surface movement:
Swimming
When not attached to a surface, the organism’s body facing follows the camera direction of the player (mouse) both horizontally and vertically. Mouse-look therefore controls the full orientation in 3D space. However, to keep movement itself simple enough to easily grasp, we do not include rolling of the creature. In other words, the creature will not be rolling over on its side, so that its topside is pointed towards the horizon or floor.
I am afraid that full “flight sim” controls would be too much to handle for a game like Thrive, especially for people first entering the stage. But I would be happy to hear different opinions on this. We can also still use tricks like having the creature bank in high-speed turns, even if the camera does not follow suit.
Planar Movement
This is the WASD controlled acceleration in one plane as we’re used to from the Microbe and Multicellular Stages, but the plane is determined by the vertical rotation of the creature instead of being fixed. The reason I am not labelling this “horizontal” is because it will therefore not exactly be horizontal.
As is probably obvious, we have accelerate forward (W) towards the front of the creature (which can also be up and down relative to the current altitude). Accelerate rearward (S) works the same. We also have “strafing” accelerate left (A) and accelerate right (D). Since the creature’s orientation (and with that the plane of movement) is fixed on a horizontal axis, strafing never accelerates upward or downward from the horizontal plane. The magnitude of acceleration in each direction is determined by the organism’s swimming acceleration ability in that direction.
Vertical Movement
Based on the species’ buoyancy value, it will either sink to the seafloor or float towards the surface of the water passively, with the acceleration/speed depending on the value. And yes, if you are neutrally buoyant, you stay at the same general depth passively. I think it makes sense here to have a buffer zone so that objects that are almost neutrally buoyant are treated as being exactly neutrally buoyant. That way, this does not need to be managed with extreme precision in the editor.
If you naturally sink to the bottom, you can still swim up, but that requires actual active swimming. That can be done either through “pushing” water straight down using the ascend (space bar) action, angling the body partially upward and swimming “diagonally up”, or by moving horizontally fast and using certain body features to provide lift. (If anybody is thinking “hey, that sounds exactly like different types of flight in the air,” my answer is “yes, welcome to the fun world of fluid physics”)
One question I want to ask here is: if the player species is built so that it needs to expand energy to not sink directly down, do we want this to:
- Be done automatically, unless the player is using descend.
- Require the player to continuously “pulse” the ascend ability to stay up.
- Have option 2 be the default but include a toggle to maintain altitude, similar to how you can currently press a key to toggle continuous forward movement.
I am partial to option 3 here, but I recognise that it’s more complicated.
While this is admittedly a quite involved set of systems. a major benefit here in my opinion is that most of these systems can later be directly ported to airborne flight, only needing to adjust the “physics” numbers.
This combination of camera-relative movement with absolute vertical up/down movement is fairly common in games, so I don’t think that will be a huge adjustment to most players. The main novelty here is automatic sinking/floating underwater, which is pretty much a necessity if we want benthic life walking/crawling on the seafloor.
Surface Movement
This is used as long as the organism is on a surface, which in this context is the seafloor. As long as the creature is on a surface, the movement plane is locked to that surface. In other words, you cannot just angle your camera up to angle the body, the body remains level with the “ground”, even if the camera is looking upwards at an angle. Mouse-look still automatically turns the whole creature, just only in the horizontal direction.
Of course, alignment with the surface has some complications to it, mainly due to differing sizes of organisms. Take a 10cm diameter crater for example:
- For 1cm-long organisms, to cross this they need to first crawl downward, then climb up again.
- For 1m-long organisms, that’s a dip they just step over without changing the rotation of the body.
So that calls for a system that takes the normalised incline over an area around the size of the animal to determine the tilting of the body. However, organisms with a sufficiently high centre of mass stand up straight vertically regardless. (Imagine the way a lizard stands on an incline, compared to you, human, or a deer).
Similarly, on an incline, if the organism’s weight/negative buoyancy exceeds its climbing ability/grip, modified by the degree of the incline, the organism will lose grip and accelerate down the incline uncontrollably.
Planar Movement
Wasd-style movement controls are mostly the same as while swimming: Accelerate forward (W) towards the front of the creature (taking into account its current tilt). Accelerate rearward (S) works the same. We also have “strafing” accelerate left (A) and accelerate right (D). This can also be directed either upward or downward, depending on the orientation of the body due to being on an incline. The magnitude of acceleration in each direction is determined by the organism’s ground acceleration ability in that direction.
Generally speaking, due to being on a solid surface, ground acceleration is stronger that swimming acceleration. But there is also more drag, so top speeds are likely to be lower, and it’s faster to come to a stop.
Vertical Movement
While on a surface, you can hold detach (spacebar) to transition to the Swimming movement, with the movement plane becoming freely controlled, so you can swim diagonally up/down. This is context-sensitive, replacing the normal “ascend” action on space bar while you are on a surface. If you release the detach button and are still on a surface, you return to normal surface movement. Additionally, when on a surface and if your species has been edited to have jumping ability, you can jump (space bar), quickly accelerating you upwards (this is another context-sensitive swap).
An alternative control scheme here would be to automatically detach from the seafloor if you are moving forward while looking upward beyond a certain angle. This is similar to how a lot of games handle the transition from swimming on the surface of water to diving underneath it. But I would personally miss the direct control of a button here.
Sprinting
Sprinting (shift-key), as in the previous stages, provides a short burst of extra acceleration. What was said earlier about acceleration possibly being divided into discrete units also has an effect on sprinting though. Simply pressing the sprint button once provides an instant burst of speed to one “stroke”, while holding the sprint button down means subsequent strokes also use the sprint mechanic. Sprinting, like before consumes stamina and increases energy consumption in return for a set sprint multiplier to the acceleration.
I tried to think of as many aspects as possible here, but let me know if there’s anything I missed.
I am of course also interested in any criticism or suggestions either here or on the Community forums.
I would also like to hear, if possible, from the Programming Team on what is and is not feasible, or which parts would be the most difficult to implement.