content top

Shooting like an Amateur

This week we are going to take the opportunity to show you the dirty secrets behind some of the mob’s favorite enemies. We are going to make a little trip inside the minds of the Hosioi, the Shield Bearers and Phobos to tell you about a couple of little twitches we have used to improve their behavior.

It is much easier to make an AI with perfect accuracy than make it have a realistic chance to miss.  This is why I hate when robots and androids in movies miss their shots as if they were space cadets. Specially when shooting laser weapons, they don’t even have to compensate for wind speed, direction and things like that! Who makes these purposely faulty robots!? Do they do this to give the humans a fighting chance in case they rebel? Okey, that could be a good argument, because they end up revolting against living beings a lot… But I digress. The point is that is easier, more even so in the case of a simulation where you control all the environmental factors too.

A Hosioi hitting people with his fireball attacks

A lean, mean, fireballing machine

Back to Okhlos. Do you remember the Hosioi? Apollo’s acolytes that shoot fireballs? Well, the Hosioi’s first prototype had perfect accuracy, because they were put together very hastily. The code simply said, the target is at that point, shoot to that point. And since the fireballs were pretty fast there was little chance to avoid them. Our next step then was to make the Hosioi fallible. To do achieve this we did two things: first we added a little randomness to the shots. Not much, but just a chance that when the Hosioi shoots the fireball it comes a bit skew. The second thing we did was making the Hosioi track its target’s position with a little delay. This way the Hosioi will have less chances to hit a moving target but will be more accurate against still targets. And so, with two little changes Apollo’s acolytes went from relentless machines that never miss a shot to being fallible creatures just like you and me, having to aim their shots and sometimes experiencing the bitter feeling of wasting a perfectly good fireball.

A Hosioi missing a shot

Too fast for you, Mr. Hosioi!


Something quite similar happened with the Shield Bearers. You remember them, don’t you? From Sparta, big shields, not bears? Well, they don’t shoot anything (they trust their nasty shield bash to punish people) so the attack wasn’t the problem here. The problem here was their movement. Shield Bearers hide behind their towering shields, making the only way to beat them to attack them from their backs, and if they see the enemies are moving to flank them they will turn and face their shields towards them. So if they can follow the enemies’ movements accurately and respond immediately to them,  it becomes nearly impossible to hit them.


Yeah, you remember him!

We knew this from the start, so the Shield Bearers are one of the few characters in the game that have a “turning” animation. Everything happens so fast in the game, people are running from here to there all the time, that simply flipping or switching sprites is all that is needed most of the times, but in this case we wanted the Shield Bearer to take some time to turn around, hence the animation. But it wasn’t enough. It takes time to maneuver the mob so the few moments the animation gave you were not enough. This is when we turned to one of the tricks we had learned with the Hosioi, tracking the enemies position with a little delay. This way you may get enough to get them before they face you again, and the idea of these giants hiding behind their massive shields being a little slow makes perfect sense too.


The Shield Bearer making his signature turning move

Shield me up, Scotty!


Last comes the story of Phobos. Not long ago we decided that Phobos would move around by leaping from place to place, kind of in a hulk-esque way. He is a big guy, bulky and mean, so it is pretty cool to see him land next to you and take a swing with his mighty axe. But, as you may have guessed, not everything was perfect at first. Deciding where to jump was the issue here. The easiest thing to do was just get the mob’s position, either the center of the mob or the leader’s position, and jump there. But that didn’t feel good so we had to resort to some of our old tricks.


Look at him go!

White gods can’t jump


In this case we used randomness again. Adding some randomness to the jumping target position meant that sometimes Phobos would end up just ahead of the mob, seemingly anticipating the mob’s movements, or a little behind them, giving them a chance to escape or head back and engage. The result was something much more interesting than having him always jump into the middle of the mob and attack everyone there.


Is there are morale to this story? Of course there is, thousands of hours of watching pre-Seinfeld sitcoms taught me there is always a morale at the end. It may be that little changes can make a big difference. Or it can be that one of the keys to making an AI more real is to make it fallible. Or that random numbers are awesome. But there is definitely a morale in there somewhere.

Read More

Sparta, Take Two

Last week, we talked about our “outside the box” solution to a particular problem with the Y displacement.  It wasn’t perfect, but we are almost proud of it (we don’t actually know what being proud is, but we read about it).

Before that, we had started talking about Sparta,  the new world we are working on. We showed a few bits of Sparta, and this week we will continue presenting new stuff!



Another one of the new enemies introduced in Sparta is the Rock Thrower Cyclops. He will throw rocks at you (I bet you didn’t see that coming). He may not be as tough as the armored cyclops or giants, but his rocks can do a lot of damage to the units.


Here he is, grabbing a rock to throw. Ah, the Rock Thrower.


Besides adding more enemies, there were a few things we tweaked in Sparta.

In the previous world, Delphi, you could find a lot of shops in the city, like a meat shop, a fruit shop, and so on. In Sparta, being a much more “war friendly” zone, you will be more likely to find war-related stuff . Which meant that, in addition to a change of materials and textures, there were lots of structural changes in the buildings.

For instance, instead of a meat shop, you will have an Archery Range.


Needs an awful amount of work, but you get the idea.

And the buildings were just a small part in the process. You can push a little further the idea of a heavy armed city with props.  For instance, having some training dummies around. It really suggests that the people there are constantly training.


Breakable dummies everywhere!


Also, to have a heavily armed city, you need lots of weapons.


You can feel like Neo here.


And finally, we used the directional light to change a little the mood and the time of day.


Well, that’s pretty much it for this week, and probably for Sparta. Next week we’ll be introducing a new world! (maybe)

Read More

Cameras, Pythagoras and faking it

A decision every game developer must face at one point or another is which camera angle to use in their game. Even in the case of 2D games, developers will have to choose between different perspectives (top-down,  side-scrolling, isometric, etc.), but this is particularly true for 3D games. Since Okhlos takes place in a 3D environment our case was not different. We started with the camera at a somewhat arbitrary position and rotation. Then, as time went by, we tried different angles and positions until we found something we liked. It wasn’t as easy as it may sound since we had two competing factors: on one hand we wanted you to be able to accurately see the mob and its immediate surrounding  as easily as possible, on the other hand we wanted to showcase the game’s art, the units, the enemies, buildings, the landscape etc. Gameplay wise the best perspective seemed to be top-down, clear and simple, but the top down perspective meant that you would be looking at roofs most of the time, and let’s not speak of how horribly incompatible it was with the billboard characters we had planned. The solution we found was the camera you can see in Okhlos’ current build: it lets you appreciate the art as well you give you a decent chance to spot those pesky Cyclops before they crush you.


A screenshot with the current camera position and rotation

Best camera ever


Happy ending, then? Not quite. There were a couple of issues. The first one was immediately evident. With the current camera perspective, people and enemies, could get blocked from the line of sight by buildings in front of them. It was a problem the top-down camera would have avoided but we now had to deal with. Luckily we were not the first ones to venture into the dangerous seas of isometric perspectives so we resorted to a solution many others have used in the past when faced with the same conundrum: making the objects that block the view transparent while there is something you need to see behind them.


A gif showing a building fading out when the leader goes behing it



So now everything is settled and we can all move to happy land, no? Wrong again. Even though the view-blocking-buildings crisis was averted there was a new problem in the horizon. And this time, the problem at hand was not so evident. In fact we spent months without even noticing it. Throughout many version we played the game with the feeling that there was something odd about the way the mob moved, but not quite able to pinpoint which was the problem. Finally, during one playtesting session we came to the realization that the mob seemed to be moving more slowly when moving upwards or downwards than when moving to the sides. Once again this was due to the camera angle we had chosen. The mob did move in every direction at the same speed but the camera angle gave the illusion that it was the mob was moving at different speeds. Our solution here was to do something that would seem to be the problem in the first place, make the mob move at different speeds depending on the axis you are traversing.

So now, the mob and its leader now move 40% faster when they are going towards the bottom or the top the screen, than when they are moving to the sides. Why 40%? That’s when our good old and soon-to-be-in-the-mob Pythagoras comes to the rescue. The main camera in Okhlos is tilted 24°, and we know, thanks to Pythagoras, that by calculating the sine of that angle how much the view is distorted by the camera, and therefore how much we need to compensate. Hooray Pythagoras!


A screenshot showing the camera's angle and position in the editor

Here you can not only see the camera’s position, you can see the frustrum too! Delight in the wonders of the frustrum!


If we learned something from all this (and I hope we did), it was that dealing with the camera is an important issue. But we kind of knew that already. What we didn’t know was that sometimes the solution to a problem may be something completely counterintuitive. We ended up with a mob that moves at a one speed in an axis and at a different speed in another, which seemed to be the problem itself. However, it feels much better now, so this largely compensates the fact that you can traverse the levels faster by moving vertically (and by the way, now that know this, don’t exploit it!).

And so we come to the end of this week’s update.  This was not the last time we had to do something apparently counterintuitive to solve a problem, nor it was the only problem we had with the camera, but we will leave those stories for another time. Until next next week!

Read More

Introducing Sparta!

These past weeks, we’ve been working on Sparta, a brand new world for Okhlos.

We decided to work on a new world, despite not having finished Delphi, because we thought that introducing more levels will give us a better idea of how the game as a whole will be .


So, in Sparta you will find:


Lots of enemies. Most of them, cyclops. Also, some of these cyclops will attack constantly the mob’s leader, so you will have to try and dodge them while controlling the mob.


A new kind of enemy will be the Shield Bearer (not a bear), which can only be attacked from the back (and that meant doing back sprites again… which is a pain).



The main boss in Sparta is Ares, the god of war. He will spawn in a sort of Colosseum, and the battle with him will be very melee oriented.



Also, he will spawn with his sons, Phobos & Deimos.

Phobos is the personification of fear (the word phobia comes from him), particularly, the fear in battle. So his powers will affect the mob morale and cohesion.

Deimos, on the other hand, is the personification of terror. It’s something a little more abstract, so that’s why we went with a more mystical approach for him



This was the original concept art. Deimos in the left, Phobos int the right. Below is the pixel art version. As you can see, lots of changes happen when we translate from concept to pixel art.




Also, Phobos and Deimos are (appropriately) the names of Mars’ (which is the Roman name for Ares) two satellites. All of this makes searching for them a little more annoying (luckily, is not even remote as annoying as Electra).


We wanted to re use a lot of assets to be able to test it quickly, but we made some new things in order to give Sparta a distinctive look. We changed the terrain, we made new buildings, and we changed the roads.



We still have lots to do in Sparta, but this will give us enough to test the new world and see how it feels!


That’s all for this week! Let us know what you think!

Read More

More heroes!

These past few weeks, we’ve been working on lots of new stuff. Among them, there are new levels, enemies, and heroes! But since we were already in the tpoic of heroes, in this update, we will be introducing the rest of the heroes we have been working on.


Andromeda is a very interesting character. She was held to a cliff to feed some monster, but Perseus ruined the day. At least for the monster.

In Okhlos, Andromeda will boost the mob’s overall hp.

At first, I drew her with green hair, as a very obvious nod to a certain character also representing Andromeda, but it was way too obvious.

The cool thing about Antigone, is that she hasn’t been much explored  in popular culture. It’s not one of the classic characters you find in every Greek-mythology-based thing. Also, it’s amazing she didn’t came out plain stupid, because of her mother and grandmother were the same person.

In Okhlos, Antigone will give the mob more cohesion.

In this screenshot, you can see how more or less cohesion will affect your mob.

So far, the Dioscury, are the only hero that are technically two. They were guest stars in a lot of myths, like the Calydonian boar hunt, and the Argonauts expeditions.

In Okhlos, they will boost the overall attack of the mob.

My first intention, was to make her clothes red. That was obvious and inaccurate, so I turned into more research. Finding reference images of Electra was very annoying because of  the saturation of other Electras (And trust me, Google images is FULL of pics of them).

Electra has bad reputation because of Freud (technically, Magneto), but it has nothing to do with the original myths. As Antigone, which is the daughter of Oedipus, a hero already in Okhlos, she is the daughter of Agamemnon.

In Okhlos, she will make the mob move and attack faster.

Finally, Helen played a fundamental role in the Trojan war. Also, she is one of the first characters of the Trojan war we introduce! The Trojan war it’s likely to be a real conflict, with some poetic licenses, triggered by her running away with Legolas.

Also, she is the sister of the Disocury, so this week, we introduced a lot of family members in the game.

In Okhlos, she will raise up all the attack stats in the mob, BUT also will reduce your cohesion a lot!


So that’s it for this week! Next week, we will show you our first steps into the new levels!

Read More

I’ve got a fever, and the only prescription is more heroes!

Did we ever mention how important heroes are in Okhlos? No? Are you sure? Well, they are. Very. So creating heroes has been a task that we have been working on from almost day one, and something we will probably keep on doing until the very last day of development (or at least beta). Here is an update on some of the latest ones we have developed. Enjoy!



Now this is an old school hero. Before Heracles, before Perseus, before all these new kids on the block took the scene there was Bellerophon.

He started his journeys as an exile, seeking penance for a crime he had committed. He then proved to have the remarkable ability to make enemies in very high places, and as a result  he spent most of the time on seemingly impossible quests intended to kill him (sounds familiar, Heracles?). The most notable of these was the slaying the Chimera (the fire-breathing part-lion, part-snake, part-goat monster we have all come to love and fear), for which he got himself a flying steed, no other than Pegasus. Bellerophon’s fame and glory grew with each victory until eventually he thought he had earned the right to fly with Pegasus to the top of mount Olympus. Big mistake. The always nice and amicable Zeus politely disagreed and sent Bellerophon flying back to earth, blinding and crippling him in the process. Zeus also kept Pegasus because he fancied a flying horse, and  Bellerophon, disgraced and disfigured, spent his last days pitiful as a hermit, away from civilization.

What is Bellerophon’s part in Okhlos? Well, his tale was very interesting, and there were lots of elements from which we could create mechanics but in the end we focused on one aspect, the loner hero. Not only did he start as an exile and ended as a hermit, but at his prime he thought himself to be better than any other mortal, so we came up with a mechanic that plays around this. Bellerophon stats increase as the mob’s size decreases, and he gets weaker as the mob’s size increases. This makes him a very atypical hero, and the perfect choice for players who would like to try a run with a very small mob. Normally it would be close to suicide to face the gods will only a handful of people in the mob but heroes like Bellerophon make it possible. And perhaps this way Bellerophon will get his revenge on his old pal Zeus.

Sprite-wise, Bellerophon is the tallest unit so far. Roque wanted to transmit the idea of this larger than life hero, someone that looked like he could take on an army on himself, so his body was based on that of Sir Gregor Clegane, also known as The Mountain, from Game of Thrones. If you don’t know Gregor, his knickname should give you a hint about how he looks: massive, imposing, not that easy to find t-shirts that fit him nicely in most stores.



Pandora was another very interesting character. You probably all know her story, or at least some version of the story. Or perhaps not. All I knew before researching a little bit was there was a box involved, lots of evils coming out of it and some hope in the end. I didn’t know that according to the myth she was the first woman, created by Zeus to punish humanity for using fire to cook food and not starve to death (although that last part doesn’t surprise me at all, #ZEUSISADICK). There are also a lot of parallels between Pandora and Eve from the judeo-christian myth, but I think there is a story that bears even more resemblance to that of Pandora: the story of the Smurfette. Both were created by the villain, both were intended to harm the good guys, and in the end both were turned blond and became regular cast members. But I digress.

Back to Okhlos. While designing a mechanic for Pandora we went straight for the core of the myth: the box, or the jar, depending on the source. Let’s say container. We can all agree it was some kind of container. Probably not a Tupperware. Although it would have been a really good choice. You want to keep all those evils fresh. But I digress. Back to Pandora’s box. There aren’t that many containers in the game but we do have some: the item containers, the things you can destroy and find items inside. So we decided that having Pandora in mob would increase the chances of getting an item every time you destroy one these containers. However, her presence would mean that there would also be a small chance of a monster spawning from the container instead of an item. Pandora is one of those heroes that can be very useful but has a setback, which seemed to us was quite fitting with the myth, and also suits the concept of a Pandora’s Box.



So far most of the heroes we have added to the game were men, and the few women that we did include either had a downside (like Pandora) or were not as heroic as their male counter parts. Partly this is simply  because most of the heroes in the myths are men, but we thought we could still find some cool, kickass heroines throughout the mythos and so we did. Atalanta is a perfect example of this. As baby she left to die in the wilderness by her father, King Iasus, but she managed to survive, growing up in the woods and becoming a superb huntress and fighter. She took part in the most epic quest of her time, the hunt of the Calydonean Boar, was the first to draw blood and got to keep the hide of the beast. No small feat, considering she was competing with pretty much every hero around (except Heracles who had already killed another boar so he didn’t bother). Robert Graves also puts her as one of the Argonauts, being once again part of a dream team of heroes and kicking serious ass. However, she is perhaps best well know for almost supernatural speed.

Atalanta was the fastest runner alive at the time, able to beat anyone in a foot race. So when her father the king (who after seeing that her daughter had slain the boar, beating all other heroes, decided to forget all that nonsense about leaving her to die in woods and take her back) told her she had to get married,  Atalanta, who wasn’t into that marriage thing,  said she would only marry the man that could beat in her in a race (and would kill any who failed, just to spice things up).  Many did die trying to beat her until the pesky gods once again interfered, Aphrodite this time, and one man Hippomenes was able to defeat and marry her. And then one of the gods, either Zeus, Rhea or Aphrodite herself, turned them both into lions. Because that’s what the gods do.

Anyway, Atalanta’s role in the mob was easy to figure out. She was a perfect fit for the stat boosting heroes. Who better than the fastest runner in the ancient Greece to improve the mob’s speed modifier? So if you get Atalanta, she will provide a huge bonus to the units’ speed, making everyone run faster. And also she will kill as many cyclops, centaurs and other Olympian spawns as she can while everybody is running around.


And that is all for now. We have been working on several other heroes these last weeks, but that we will leave them for another time. Until then, here is the updated hero count!

Read More
content top