jsparrow.uk

Hong Kong 47 Dev Diary (2019)
08 February 2019

Hong Kong 47 Dev Diary (2019)

This is the first dev dairy I’m releasing for Hong Kong 47, despite the fact I have been working on it for quite a while now. In this diary, I’ll document the development up to the time of writing, from when I first made the concept to the current build, and give you a run down of the game’s basic ideas and story.

Hong Kong 47 is a doom-like game set in Hong Kong in the far-off future of 2047. In this year, a highly authoritarian and militarized china fully integrates Hong Kong into the mainland, and our hero, Jason, is arrested and sent to a prison in Manchuria for being a suspected member of the Hong Kong independence movement. Here is where our game starts, Jason must break out of prison and escape China, before he’s sentenced to death.

The idea for this game has been around since 2016, when I made some of the mugshot doom-style faces. Originally, I was going to just make it a WAD for doom, as I didn’t have that much experience with Unity at that point and I thought that making a game of this scale would be too difficult. It never went anywhere unfortunately, until November of 2018 when I bit the bullet and attempted to make a first-person game in Unity. To my surprise, it wasn’t nearly as hard as I had made it out to be in my head. It was around this time that I had just finished college and wanted to start making some games in Unity, as I hadn’t done so for ages, so I made a basic concept for the game and a little test level:

However, after I finished this basic concept level, full with moving clouds and a starry night sky (although there were no enemies and the weapon did nothing) I ended up getting distracted by different things and projects. It wasn’t until mid-January of this year I picked HK47 back up again and started working on it properly. By the end of January, the game was much more functional:

Whilst the test level itself doesn’t look too pretty, in this final build of January I added enemies that would search for the player and chase them down, as well as patrol though a set number of waypoints. I also updated the UI and added notes, which I’ll fully describe in a later dev dairy. Weapons fired properly, health and ammo worked the way it should and the mugshot displayed varying levels of emotion depending on what was happening in the game (happy If the player picked up ammo, sad if shot etc.). As well as this the mugshot also was a visual display of health along with the health counter in the UI. As the player takes damage, the mugshot will get more and more bloody. Suffice to say, whilst still looking very rough around the edges it was looking more like a proper game.

Since that build, I’ve added many things. The UI has been updated yet again, and I’ve added proper animation for enemies as well as allowing the enemies to detect the player via sound (so if the player shoots their gun, even if it doesn’t hit any enemy, they’ll all hear it). Doors have been added (although these aren’t totally bug free yet, as enemies can walk straight through them), some of which can be opened normally and some of which require either a silver or gold key, just like in Wolfenstein 3D:

This gold door requires a gold key to access

Along with this, all of the weapons I planned to add to the game have been implemented:

The Pistol

The first weapon I made for the game. Works quite simply, deals a little more damage per shot than the AK74 but a lot less than the shotgun. In the actual game, this will be the first gun the player gets their hands on.


The Knife

The player will always have a fall-back knife to use. If they run out of ammo, they can use this weapon to take down enemies at close range. Currently the knife deals as much damage as the pistol, however in the future I also plan for the knife to be able to instantly kill enemies from behind if the player is undetected.


The Shotgun

Currently the shotgun is the most powerful weapon in the game. It will kill a basic grunt enemy instantly, although it has a very slow fire rate and uses 5 ammunition for every shot to balance this out. Still, the chance to take out an enemy with one shot makes this weapon easily the most deadly if you are a carful shot.


The AK74

The last weapon I have implemented so far is the AK74. It has easily the highest fire rate of all of the guns and can take down enemies very quickly, with the slight downside that it takes 5 shots to kill an enemy with it compared to the 4 the pistol takes and the 1 the shotgun takes (all subject to change obviously, it’s still early days).


Originally, I was going to have all of these weapons use different ammo types like in Doom, however I opted for them all to share the same ammo pool and simply use that ammo in different ways in the end. I think this helps keep the game a bit simpler, however it does have the downside of the player sticking with only one weapon as there’s no reason to switch to another one once you’ve got your favourite. Due to the small roster of weapons in this game though, I don’t think that this is too much of a big deal.

I think that’s all I need to cover in this diary, it was a lot to get through but that’s because it was the first and I needed to document all that I had done since starting. I expect later dev dairy’s to be a bit shorter and focused on specific topics. With that said, I hope you enjoyed reading all this! I’ll see you in the next one.