2014/06/07
Sneaky Ninja - Stealth based level design
This is a short blog post with some of my general thoughts and ideas that I got while designing the levels for Sneaky Ninja. This was the first time I designed levels for a stealth game so I thought I would write down some of the problems I encountered and how I solved them.
When I fist started designing the first level for Sneaky Ninja I was thinking about it like a puzzle game, but I quickly realized this was not the correct approach because of the way the game was designed with an arsenal of different items the player could choose and use in each level. It's nearly impossible to design a puzzle with a "perfect solution" that works for every item in the game, therefore I decided to go for a more open, "stealth-like", approach to designing my levels. I tried to create two our more different paths that the player could take through the level and each path would challenges where some items are more useful than others.
We discovered early in testing that balancing the items, (range, amount of uses, etc), would be crucial for our game. In one of our early tests we had just a default amount of three for each item, for some items this was fine but for the grappling hook for example it was completely broken, if you used the grappling hook with three uses you could complete almost any level by completely bypassing most challenges.
Another decision that was made that influenced the level design was that the player would not only have to get in and steal the plans they also needed to find their way back out. Not only did this make more sense "logically" it also let players explore the different paths in the map on their way in and then out, without having to replay the whole map.
A thing I noticed in testing and that I then started using more in my levels was that players expected guards to have a "circular" patrol path, I also noticed that guards with circular paths where very easy to avoid as the player could simply move behind the guard knowing there was no risk in being discovered. In order to make guards less predictable and harder to avoid I started using more irregular patrol patterns, some of my favorites was simply a L-shaped patrol path or U-shaped, this would often trick a inattentive player that the guard would do a usual complete circular path, but instead the guard would turn and catch the player as he/she tried to sneak behind.
Here's an exemple from the first level I designed (Level 2 in the game). This is one of the first challenges in the level, at first the guard path was as in this picture:
Here the player could simply wait until the guard walked past the gate and then fall in behind the guard and sneak behind him until he turns to the right and then simply continue straight on.
In the final version of the level the guard walks in the following L-shaped path instead:
With this path the guard guards a smaller area but instead is more active within that area, making it harder for the player to avoid being detected. Many players would try walking out behind the guard just as he moves past the opening, only to have the guard turn around and detect them.
This made it so that players had to be more attentive to guards patrol patterns instead of just assuming they would walk in a normal boring "circle".
Labels:
5SD037,
game design,
level,
level design,
ninja,
sneaky,
sneaky ninja
2014/05/26
Sneaky Ninja - Level Design
The last two weeks have been very stressful, lots of work have been done in order to finish up our game for the beta that was last week and the final presentation on GGC this week. I've worked on a lot of features, implementing GUI, creating highlights for all the items and abilities, implementing sound effects and music, as well as doing general tweaking and bug fixing.
But the most fun and interesting thing I have been working on are the levels, I have designed and implemented three levels into our game. In this blog post I though I would do a quick breakdown of one of the levels explaining my thoughts and methods when I designed the level.
The first thing I did was deciding what kind of difficulty I wanted the level to be, when I started working on this level we already had a easy introductory level and a second a bit more advanced level, therefore I decided that this would be a harder level, so that we get a nice progression in the levels. Now it was time to figure out what the level actually was going to be.
But the most fun and interesting thing I have been working on are the levels, I have designed and implemented three levels into our game. In this blog post I though I would do a quick breakdown of one of the levels explaining my thoughts and methods when I designed the level.
The first thing I did was deciding what kind of difficulty I wanted the level to be, when I started working on this level we already had a easy introductory level and a second a bit more advanced level, therefore I decided that this would be a harder level, so that we get a nice progression in the levels. Now it was time to figure out what the level actually was going to be.
I took inspiration from old Japanese fortress/castles and decided to try to create something similar for my level. As our game is basically 2 dimensional when it comes to the actual gameplay, it was not possible to create the layered effect, with several levels, of a real Japanese fortress. Instead I settled for having several layers of walls that the player would have to penetrate to simulate a castle like structure.
This is what the layout for the final version of the level looks like, a fortress with a outer wall, a inner wall and finally a small building where the secret plans are hidden. The major challenges for the player is to traverse the two walls, both have two entrances that require different items and strategies to use. It is possible to use the grappling hook item to climb over the outer wall, but the inner wall is protected by bamboo spikes making it impossible to climb with the grappling hook, this is so that the player is forced to go through one of the entrances to the inner keep.
Guards at the main entrance.
Guards patrolling inside the main entrance.
Our game encourages planning, different strategies and choosing the right items for a certain level, therefore we always have more than one way to approach the objective. On this level you can either enter at the top through the main gate. Here there's a large collection of guards patrolling, this might look discouraging but with good timing or use of a item such as the distraction bomb or a smoke bomb, it is possible to sneak past this group of guards, the bushes inside the first entrance are also a excellent hiding spot for the player when planning their next move. To enter the inner fortress the player has to maneuver around these two guards, they simply rotate around the barricade in front of the entrance, by walking behind one of the guards the player can easily slip past and into the central fortress. But, in order to throw some wrenches into the players path there exists a third guard that has a longer patrol path around the entire inner fortress, if the player is unwary this guard might come around the corner at an inopportune time, catching the player between two guards.
An unexpected guard!
Inside the fortress.
Once inside the fortress there's three guards, one patrolling in front of the entrance, another walking in a L-shape in front of the door to the inner building. These two guards have overlapping vision cones making it hard for the player to slip by unnoticed. In the building there is a circling guard, here the player can use the dash to quickly move through the room behind the guard, or use an item such as the smoke bomb or shuriken to distract the guard for long enough to steal the plans. The player has to be careful not to get corned in the inner room as there is only one way out.
When the player has the plans he will also have to escape with them, there is another way that the player can take, but that way I won't explain here, you'll have to play the game to try it out yourself, be careful to not use all your items on the way in though, as you might need them when escaping!
Labels:
5SD037,
game design,
jonas yzermans,
level,
level design,
ninja,
sneaky,
sneaky ninja
2014/05/12
Sneaky Ninja - More items!
This week I worked on finishing the final two items for our game, as well as implementing the item selection system, so that players can choose three items to use in the level.
The two items I coded are the fire cracker/distraction bomb and the camouflage item. These items where a lot more simple to code smoke bomb and grappling hook I worked on last week. The distraction bomb can be thrown up to two tiles away from the player and will then generate a sound that draws all guards within a certain radius to come and investigate the sound. In order to "simulate" the sound from the bomb I used the same path finding system that we use for the movement in the game, this way sound won't travel through the walls in the game. The bomb uses the path finder to figure out how far away each guard is and then alerts all guards that are within range of the sound, these guards will then walk towards the source of the sound and then return to their patrol paths if they don't find anything.
The second item was the camouflage item, this item simply allows the player to become invisible for a number of turns, but only if they don't move, this item was really simple to code because the support for non transparent tiles is already in the game and could easily be manipulated to support the item.
My final big task for this week was to implement the item selection system that I created earlier so that it could actually be used with our game. The selection system uses a list of items that are simply a name, an icon and a ID number, once the player has selected the items he/she wish to use and starts the level the game will activate the item components in unity corresponding to the item ID.
This was a very short blog post as I have not encountered any big issues during this weeks work.
Grappling hook, fire cracker, smoke bomb, shuriken, four of the five items in our game.
The two items I coded are the fire cracker/distraction bomb and the camouflage item. These items where a lot more simple to code smoke bomb and grappling hook I worked on last week. The distraction bomb can be thrown up to two tiles away from the player and will then generate a sound that draws all guards within a certain radius to come and investigate the sound. In order to "simulate" the sound from the bomb I used the same path finding system that we use for the movement in the game, this way sound won't travel through the walls in the game. The bomb uses the path finder to figure out how far away each guard is and then alerts all guards that are within range of the sound, these guards will then walk towards the source of the sound and then return to their patrol paths if they don't find anything.
The second item was the camouflage item, this item simply allows the player to become invisible for a number of turns, but only if they don't move, this item was really simple to code because the support for non transparent tiles is already in the game and could easily be manipulated to support the item.
My final big task for this week was to implement the item selection system that I created earlier so that it could actually be used with our game. The selection system uses a list of items that are simply a name, an icon and a ID number, once the player has selected the items he/she wish to use and starts the level the game will activate the item components in unity corresponding to the item ID.
This was a very short blog post as I have not encountered any big issues during this weeks work.
2014/05/05
Sneaky Ninja - Alpha bug hunt & items!

The first part of last week was spent on hunting down and eliminating some pretty nasty game breaking bugs in our code. We wanted to fix these bugs before we started working on the final feature we needed for our alpha, the items. Writing and reading about bug fixing is not very fun or interesting so I'll tell you more about the second part of the week instead, where we implemented the three items we decided to use for our alpha, the smoke bomb, grappling hook and shuriken.
![]() |
| Concept art for the shuriken and grappling hook. |
The items I coded where the smoke bomb and the grappling hook. The smoke bomb works by simply pressing the item icon in the HUD which would make the player throw a smoke bomb at his feet making the current tile he's standing on and the four adjacent tiles fill with smoke for two turns. Guards can't see through the smoke letting the player escape unnoticed.
The grappling hook is a bit more complicated, the player clicks the item in the HUD to select it, he can then click an tile adjacent to the player character that contains a wall, the player character would then climb over the wall to the other side.
Implementing the smoke bomb was relatively easy, we already had code for making tiles "blocked" so that guards can't see through them, the only problem I encountered was when I tried to make the tile only blocked for a certain amount of turns, we did not have any way to check what the turn the games was in and so I implemented a quick variable that stored what turn it is, when I had done this it was very easy to make tiles blocked only for a certain amount of time. A pretty stupid mistake I made was that I when testing the smoke bomb in my Unity scene I only changed the colour of the tiles that the smoke bomb was effecting in order to show the effect instead of adding the smoke effect created by our artists. When we ported the smoke bomb into the alpha scene where we had real textures on the floor tiles it was not possible to see what the smoke bomb was affecting. I did not have time to fix this before we had to show the alpha so this is something I will work on this week, I will also add the animation for when the player is throwing the smoke bomb, this animation is not done yet therefore I could not add it to the alpha.
Labels:
5SD037,
game design,
ninja,
programming,
sneaky,
sneaky ninja
2014/04/26
Sneaky Ninja - Pre Alpha Coding
This week I have been working mostly on finishing smaller programming tasks in order to get our first alpha build of the game up and running. I also created the base for our item selection system, where the player can select up to three items to take with him/her into the level.
The item selection system lets you choose up to three items from the database of items at the top of the screen, each item has a unique ID that later will be used to give the player the corresponding item to use during the level. New items can dynamically be added and removed from the database. All the basic functionality of the selection system works as intended, click to add/remove item from the action bar, you can only have one of each item.
The only big problem I encountered while coding this system was due to my inexperience with Unity, the problem I encountered was that when you clicked on an item in the database it would add two of that item to the action bar. I first thought that there was something wrong with my code, but when I could not find anything wrong with the code I started searching around for how Unity handled input, it turned out that the default Unity function I was using, OnGUI (for drawing on the graphic user interface), is called several times each frame, this made it so that the mouse click was registered several times each frame making the program add several of the same item, In order to fix this problem I had to move the actual input logic to the normal Update function which is guaranteed to only be called once each frame and only handle the actual drawing of the interface in the OnGUI function.
My second bigger task was to add the placeholder models and animations to the player (blue) and guard (red) in the game. This task went relatively painlessly, thanks to the good tutorials at the Unity website I was able to implement the models and animations created by our fantastic artists with no problems.
Jonas Yzermans Falkheden
![]() |
| Item selection system with placeholder graphics. |
The only big problem I encountered while coding this system was due to my inexperience with Unity, the problem I encountered was that when you clicked on an item in the database it would add two of that item to the action bar. I first thought that there was something wrong with my code, but when I could not find anything wrong with the code I started searching around for how Unity handled input, it turned out that the default Unity function I was using, OnGUI (for drawing on the graphic user interface), is called several times each frame, this made it so that the mouse click was registered several times each frame making the program add several of the same item, In order to fix this problem I had to move the actual input logic to the normal Update function which is guaranteed to only be called once each frame and only handle the actual drawing of the interface in the OnGUI function.
![]() |
| Placeholder graphics for pre alpha. |
Jonas Yzermans Falkheden
Labels:
5SD037,
jonas yzermans,
ninja,
programming,
sneaky,
sneaky ninja
Subscribe to:
Posts (Atom)








