Shadows of Doubt DevBlog #6: First Person Adventures

Shadows of Doubt DevBlog #6: First Person Adventures

Shadows of Doubt is a first person detective simulation game set in a procedurally generated and fully simulated city. As head of the police detective department, it’s your job to organise your sleuths and track down AI serial killers before they strike again! Read previous dev blog entries here.

This week has been hugely productive– following on from last week, I’ve implemented basic interiors so you can now go inside every building (complete with stairwells). That’s not to say interiors are anything like complete- there’s no furnishings, doors, or really anything of note, just rooms decorated in a sickly green striped wallpaper. However, the rooms even existing in 3D space is a nice milestone.

I’ve had to start thinking about the culling techniques for the game, as the game can’t possibly render every single room in every single building across the entire city at once. I’ve been able to appropriate my pathfinding/grid system to help me here, as interior space configurations are massively simplified by being on an internal 5×5 grid system, it’s able to help the engine know what to render and what to skip. The streets are rendered from inside a building, so you can see out the windows, but not vice versa. The only exception to this rule is the ground floor, which is rendered at street level, so it’s possible to have things like shop storefront windows which you can see into and out of. I’m happy with this compromise as it’s generally pretty tough to see into a window above the ground floor if you’re in the street.

I love the effect of the voxels creating such harsh shadows in the stairwells. It fits the noir theme perfectly!

After my graphical production spree, I’ve now settled back into coding the gameplay. The main reason for this is to get something at least semi-playable I can demo pretty soon. I’m finding the pieces are finally fitting together a little more. The complete simulation of detective cases gels well with the player being an active character in the world. For example; don’t want to spend several in-game hours dusting the crime scene for prints? No problem- just leave it to your other detectives while you track down a lead.

You might, want to question the prime suspect, but also canvass all of the neighbours to leave no stone unturned- again, not a problem, just leave the boring stuff to your minions! If there’s nothing for your other detectives to do, that’s not a problem either- they’ll sit back at the office and generate ‘paperwork’, which is a resource you need to unlock various orders (for example obtaining a search warrant).

Essentially it’s going to be a first-person detective game which allows the player to focus on the more interesting side of detective work. It’s also going to be possible to do the opposite and be the one sitting back at the office, passively generating the paperwork resource, while you simply order your detective teams to do everything.

I’m going to draw a line at combat though. Stealth, sneaking about and tailing suspects are definitely on the cards, but combat not so much. If I do ever decide to explore it, it would be a minor part of the game, so just to reiterate- this isn’t a shooter.

One decision I’m stuck on is what to do with the old default view; the isometric camera. As you can see below, the game looks great from this view, but sadly I cannot find much of a practical use for it. Currently, it’s been taken out- the first person camera being essential for exploring, while the top-down camera is better for navigation and a general overview of the city. You can switch between them seamlessly with the F key. What the top-down camera can’t do, however, is differentiate between different floors in a building. This could be where the isometric camera is useful.

The isometric view: Pretty but not practical for anything right now!

Lastly, with the focus now back on gameplay, I’ve been working on a first-person object interaction system. I’ve taken some inspiration from the original Deus Ex and System Shock here, as I’m sure anyone familiar with them will no doubt recognize. Maybe it’s my own nostalgia, but in my opinion, it remains the clearest graphical way to interact with the game world. Not having a first-person weapon to design around frees up both mouse buttons to become available for world interaction- I’ve not quite figured out the rules for this yet, but it gives me some freedom in that respect.

In the week ahead I’ll be continuing to evolve the gameplay. My first gameplay milestone involves having the AI killer murder someone, have the crime be reported, and then for the player to be able to visit the crime scene and find various bits of evidence.

Facebook
RSS
Shadows of Doubt DevBlog #5: Pivot!

Shadows of Doubt DevBlog #5: Pivot!

Shadows of Doubt is a detective management/simulation game set in a procedurally generated and fully simulated city. As head of the police detective department, it’s your job to organise your sleuths and track down AI serial killers before they strike again! Read previous dev blog entries here.

Sometimes you can judge how hard I’m working on the game by lack of my blog updates, it’s fair to say that’s been true recently. I’m rallying to get something presentable and playable to some extent by late summer.

It’s always been my personal game dev philosophy that I’d rather make games that are too ambitious for their own good, rather than under-ambitious. This project is not an exception. Despite my enthusiasm, however, so far the ‘game’ part has always seemed off. I love a good management game, but I guess a big reason why detective games and management games haven’t crossed paths before (to my knowledge) is that… Well, it’s pretty fun for the player to do the detective work, not leave it to a team of minions!

The game needed an injection of excitement in order for me to clarify where my ideas were heading…

In the last update, I mentioned about putting a first person controller inside the 3D city that I’ve constructed, just to get a sense of what it would be like to explore the city from street level. Although my original idea for the game certainly didn’t require that, part of what makes development fun for me is trying out those ideas. It’s been a huge amount of work to create this simulated city and population, and I thought it a shame that you can’t really feel ‘among’ it with a top-down camera perspective. I only really started with the overhead perspective because it’s typically part of the management game genre. Often the reason for that is because the player is required to build things– that’s not the case here, so it seemed ripe for experimentation.

Shadows of Doubt: A first-person detective sim!

This is about the latest in the project I can comfortably change something as fundamental as this without having to remake a lot of things. The first person perspective is more of an addition than a change. I still want to keep the framework that I’ve made involving the procedural cases, population etc and even most of the management aspects. You can still pause the game at any time and interact with all the case files, as I’ve shown previously. The key difference being the player is now the detective. You’ll still need your team of professionals to complement you- (eg forensics experts, ordering DNA tests, autopsies etc). But you’ll be visiting the crime scenes, questioning and pursuing suspects yourself and generally being more a part of the world in addition to having that slightly lighter management role.

Those building lights aren’t at all random; it actually means the light has been turned on in that room (meaning likely someone is home).

This, of course, is a lot more work on my plate. As a bit of a visuals enthusiast though, I’m having a lot of fun making some of the early assets. I’ve chosen to go for a hybrid of pixel art and voxels to make the creation process relatively easy. I’m loving working with voxels- it’s like working with Lego. I have a huge catalogue of building models from Concrete Jungle which I can adapt and ‘voxelize’- it’s saving me a decent chunk of time and because the art style is so different it doesn’t feel like a cheat.

I’m pleased with the first building model in the game. Doors aren’t a thing yet though!

Because of my ‘everything-is-simulated’ approach, the procedural generation means shadow baking is unavailable to me. The lighting is going to be a bit primitive as a result, but luckily this works fine with my low-fidelity art style. It also means all the interiors have to exist in some state– when I’ve got skyscrapers with 20+ floors, this is a challenge.

This is my custom-built floor editor. As you may be able to deduce, buildings floors are planned using a 5×5 grid. I need to keep these aspects of the game as simple as possible, as the game needs to handle a lot of pathfinding to simulate the citizens. I can designate zoning to each room (for example street-facing ground floor rooms may be retail/shops, floors above may contain residential apartments). The game will populate these rooms with businesses or apartments as appropriate when the city is generated in a similar way to SimCity. The different occupant types are also contained within presets (Unity scriptable objects). I can use different floor presets to generate buildings that are different from each other internally, while keeping my workload manageable. It’s all about those nested presets! Interior decor will be a whole other layer to this, but that’s not so important right now.

I’m really excited to show more as the game progresses!

 

Facebook
RSS
Shadows of Doubt DevBlog #4: Case Folders & Cork Boards

Shadows of Doubt DevBlog #4: Case Folders & Cork Boards

Shadows of Doubt is a detective management/simulation game set in a procedurally generated and fully simulated city. As head of the police detective department, it’s your job to organise your sleuths and track down AI serial killers before they strike again! Read previous dev blog entries here.

In this dev blog I’ll be talking about the design of the game’s interface.

Last week I switched over to making some art as I was getting slightly frustrated with the coding- not because it was going badly, but because without graphics the game feels like it wasn’t progressing. I needed that change of pace, and seeing the visuals start to come together a bit has given me some more confidence in the project.

I’m trying to keep the UI as minimalist as possible. In this initial design, I’ve managed to fit in all essential display elements into 2 compact but not overcrowded spaces. The more room the player has to browse those case files the better!

Selecting fonts has been interesting- since I’m working with bitmap pixel art fonts on this project, I can’t scale them properly without them looking awful. Therefore I’ve had to stick to 1x, 2x or more their designed size in order for the pixels to remain consistent sizes. It’s not a design challenge I had prepared for, but with some extra time and attention, I’ve managed to find some great fonts that are the size I need and most importantly remain clear. Font artists who provide affordable or even free fonts for commercial use are the unsung heroes of game development! A big thank you to Zacchary-Dempsey-PlanteYusuke Kamiyamane, ‘NAL‘ and Chase Babb for the fonts I’m using here.

I’m taking a skeuomorphic approach to the interface design- that is the elements look like their real-world counterparts. For example, the evidence information windows look like case files, the clock in the corner of the screen looks like a retro digital watch (the game takes place in the late 70s through to 90s) and the corkboard interface looks like, well, a corkboard.

Many games feature this design style, the one that springs to mind off the top of my head being Papers Please. I tried to touch a little on this in Concrete Jungle too- my games tend to be interface heavy, so why not make the interface as fun to use as possible? It’s the attention to detail that can go a long way- especially in combination with satisfying sound design (eg. rustles of paper, or the ‘stamp’ sound when you purchased a new card in Concrete Jungle). A good UI the player will never really notice because ideally, it presents no barrier to interaction and immersion with the game.

The game uses a pseudo windows interface- the evidence is presented in windows that can be moved, resized, minimized and pinned to a case cork board (which acts like the windows desktop). Just the presence of a small ‘X’ in the top corner gives the player feedback this is an interface they are familiar with.

The interface also needs to be intuitive. This is a really complex game that will no doubt require a fairly in-depth tutorial, but that’s not going to stop me trying to communicate as much as I can about how to play the game through the interface design. One super obvious thing that I really like in games like this is the use of tooltips. Mouse over something for a second or so and you’ll get a small popup window explaining what it is and its place in the game. In absence of a tutorial, I’m relying on tooltips to communicate to players almost everything right now.

The slightly revamped corkboard interface features animated strings to show which way the ‘incrimination’ is flowing.

The corkboard itself is a familiar detective trope that everyone knows from movies and tv shows, and within the game has even more functionality. At the moment the corkboard also displays the core mechanic behind the game logic recognising incriminating evidence.  Incrimination is passed along from one evidence item to another via connections (represented by the string). For example, the source of incrimination could be a dead body with a stab wound. The connection to where it was found (in this example lets say an apartment) will pass a sizable portion of that incrimination from the body along to it. From there you could discover that someone other than the victim lives in that apartment- again a portion of incrimination from the apartment is passed along to that person via the connection.

This means the incrimination spans outward from the key evidence of the crime and is also visualized really well with the corkboard interface. Recently I’ve added animation to the strings so you can clearly see which way the incrimination is ‘flowing’. String colours range from white to red the more incriminating a connection is. The strings also vary in width depending on how reliable a connection is.

I’m focusing on these seemingly minor details now as they have a knock-on effect of streamlining how you play the game. Whenever I run a build, I don’t know what’s going to happen. The clearer the interface is, the easier it is to understand what’s happening within the game.

I’ve really been enjoying the UI work- next I hope to start moving onto some 3D stuff. Exciting!

Facebook
RSS
Shadows of Doubt DevBlog #3: Moving Forward

Shadows of Doubt DevBlog #3: Moving Forward

Shadows of Doubt is a detective management/simulation game set in a procedurally generated and fully simulated city. As head of the police detective department, it’s your job to organise your sleuths and track down AI serial killers before they strike again! Read previous dev blog entries here.

In this dev blog I’ll be talking about how the game is progressing, the first pass of interface graphics and design, as well as a few new ideas I have.

For the art style, I’m going with pixel art for 2D interface graphics, mixed with voxel style 3D buildings and 2D sprite characters. I’ve always been fond of the pixel art style, the interface reminds me of the management genre’s golden age in the 90s (memories of Bullfrog games spring to mind). One fear, however, is that it’s not an ideal fit for the amount of information I need to display on screen- it’s a fine balance I’m going to have to get right.

This is my first time designing pixel art UI, and adjusting to the size/scaling restrictions has taken some patience!

Fresh Ideas: Exploring the City

I’ve been mulling over a new fascinating inclusion to the game. A lot of the game involves time passing, although an essential resource, there are periods where there’s not really much for the player to do (while waiting on those lab results, etc). This is typical of the genre and isn’t really an issue because similar games will just speed up time by several factors and pause when something interesting happens (eg. XCOM). This is what happens in Shadows of Doubt at the moment, and it’s absolutely fine. BUT…

Currently, there are isometric and top-down view options only. I’m going to have to make the game pretty anyway, and the 3D city is right there, with all the citizens in their simulated glory. Why not just let the player walk the streets in those phases of ‘time passing’? All it would need really is a basic FPS controller. I think being able to walk the streets could add a real connection to the city and its population.

How cool would it be to spend your time waiting reading the morning’s newspaper in the greasy spoon across the street over coffee? Or staring out your rainy office window overlooking the city while you wait for your agents to perform an interrogation of the prime suspect. There’s something irresistibly noir about that, and I’m going to have to pursue it to some degree. Especially since the game already requires a lot of those assets to be suitably detailed and constructed in 3D anyway.

I’m not talking copious amounts of detail here by the way. What I’m picturing is noir pixel art style 3D similar to explore ’em up game Bernband.

Trouble is this is a potential huge rabbit hole in an already-ambitious project. Where do you stop? If you can do this, why not just let you go to the crime scenes and do everything yourself like a true first-person detective game? As awesome as that sounds, the line will have to be drawn in the sand somewhere. At the moment, the first person element is purely going to be an optional ‘time waster’ element that lets you feel more immersed in the game world.

It’s going to be a challenge of course to create this world. At the moment the city is procedurally generated using a semi-but-not-overly complex system involving building density and zoning. For now I shall iterate on that generation, but later on, I’m leaning towards having the city as more of a designed element of the game. A city level editor at a later date would be a great inclusion, opening the game up to user-created cities, while keeping procedural cities as an option to the player.

I’m going to be pursuing that ‘optional’ design philosophy throughout the game. For example, all documents will also be procedurally generated and there for the player to read if they want to- but they don’t have to. The useful bits of information are summed up in a handy list-style subsection, and represented by visual icons (think if somebody has summed something up via bullet points). It’s really easy and digestible for the player– especially since the icons can link to another bit of evidence. Mouse over them and they’ll tell you the fact; “Joe Burns lives at 3 Cedar Drive”. Click on it and it’ll bring up the file for Cedar Drive (or Joe Burns if you are clicking on it from the Cedar Drive file window). But the extra detail is there for those that really want to get lost in the case- you can read the rental agreement between Joe and his shady landlord that the ‘fact’ came from.

I love games like Deus Ex and The Elder Scrolls games where, if you want to, you can spend hours reading books- or more typically notes and other forms of interaction between NPCs. The love of those moments is one of the reasons I decided on this idea as my next project, and I plan to fill Shadows of Doubt with the same kind of detail.

Facebook
RSS