Jump to content
  • Advertisement

Unity Weekly updates #23 - A flock of VIRTUAL SOUNDS



Last week wasn't as productive as the last, but it's still substantial nevertheless.

So without further ados, let's get to it!


Previously, some GUI elements didn't scale to the screen's density. This meant that no matter the resolution those items always remained at a set size.

This was fine and dandy, but now that menus are implemented it's primordial to have some kind of cohesion.

The main reason why such constraint existed was mainly due to those wacky title bars of those funky windows. Before these were all textures, and in essence, I wanted to make sure that these won't get blurred or offset, so keeping the same scale was the only choice back then.

I, however, tried a different approach: because these funky lines were relatively simple and didn't require any type of special texture I thought that we could easily replace them with custom geometries. This way I can control where each vertex goes and how they adapt to the GUI element's rectangle.

After a bit of tinkering, I finally managed to change this, meaning that I could now get rid of the unscaled canvas.

As you can see the results are a whole lot better :


And here's how it looked previously:


And just for comparison, let's take a look at the GUI at my screen's native resolution:


It was a long-awaited change, to be honest. Especially if I want to try to have dynamic resolutions in the future.

Wonderful Sounds

One of the most striking updates has to be the sounds. Previously, there weren't any sounds yet, but now there are progressively more and more varied sounds, making the game a bit more complete.

On most items (collectables and whatnot) there's now a physic sound that plays when the item's associated rigid body get hit. The sound changes its volume based on the impact velocity's magnitude. This makes locating those items so much easier.  Similarly, there's now another sound that plays when said item gets picked up.

Let's take a look:

As you can see (or heard in that case), most sounds are also given a random pitch just to spice things up.

Weapon Balances

Another big upgrade would be weapons. After a bit of closed testing, I've realized that the weapons could need a bit of balancing.

The Gun Got Nerfed

The Gun itself got a slight nerf. Before each bullet shot could be recycled. This, in effect, makes it behave more like Heavy Bullets. However, it was clear that picking up each of these bullets were kind of a pain for most people. 

So I've decided to reduce the amount of time a bullet can be recycled by linking that recycling to the player's current luck stats. 

In the future, there might be even actual bullet magazines and an automatic reload process (or manual). This way we could counteract the fact that bullets would be scarce if the player has poor luck.

The bow got buffed

The bow, however, got a big buff. Now, arrows are infinite. This effectively means that there are no more melee attacks and every time the player wants to attack a pre-charge is needed.

The Mini Map

Next, there's a new Minimap.


This Minimap shows a simplified layout of the level. The room the player is currently in is also highlighted, and it changes when the player moves to another room.

Each type of rooms has their own colours, which is dictated by the colour palette. This means that each level has their own room colours.

If this might be a hindrance then this could be easily changed, but so far I simply lack the data to know.

So far all rooms are shown (even the hidden ones), but eventually, only the discovered rooms would be shown.

There's also no other things as of yet. There might be enemies, items and whatnot. These would be pretty easy to implement though.

The map also rotates to match the player's view. It also follows the player around so that the player's position will always at the middle of the map.

Take a look:


Minor updates

  • Fixed a bug with enemies' animations not working properly;
  • Undid (partially) the UnityEvent's to also use C# native events:
    • As seen here, there's basically no reasons to use UnityEvents rather than native C# events. One of the reasons one might use UnityEvents is of they use a serialized and strongly linked. But overall it's significantly slower;
    • Another reason for the undoing is simply because my capacities are technically not serialized. This means that those capacities listeners are never invoked when the event is called.
  • Added an empty Option tab in the pause menu.

Next week

So next I'll probably work a bit on the minimap, and perhaps fix a few graphical bugs linked with the MSAA applied to the game. Some models get unwanted gaps between shared vertices:


So I might have to implement FXAA or TAA to fix this.

Afterwards, it's boss time!


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Advertisement
  • What is your GameDev Story?

    In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

    (You must login to your GameDev.net account.)

  • Blog Entries

  • Similar Content

    • By horror_man
      Hello, I'm currently searching for additional talented and passionate members for our team that's creating a small horror game.
      About the game: The game would be a small sci-fi/post-apocalyptic survival horror 3D game with FPS (First person shooter) mechanics and an original setting and story based in a book (which I'm writing) scene, where a group of prisoners are left behind in an abandoned underground facility. It would play similar to Dead Space combined with Penumbra and SCP: Secret Laboratory, with the option of playing solo or multiplayer.
      Engine that'd be used to create the game: Unity
      About me: I'm a music composer with 4 years of experience and I'm fairly new in this game development world, and I'm currently leading the team that'd be creating this beautiful and horrifying game. I decided that making the book which I'm writing into a game would be really cool, and I got more motivated about doing so some time ago when I got a bunch of expensive Unity assets for a very low price. However, I researched about how to do things right in game development so I reduced the scope of it as much as I could so that's why this game is really based in a scene of the book and not the entire thing. Also I'm currently learning how to use Unity and learning how to program.
      Our team right now consists of: Me (Game Designer, Creator, Music Composer, Writer), 3 3D Modelers, 3 Game Programmers, 1 Sound Effect Designer, 1 Concept Artist, 1 3D Animator and 1 Community Manager.
      Who am I looking for: We are looking for a talented, passionate and experienced 3D Environment Modeler who is able to create high poly realistic tunnels, rooms, props, in other words, small closed environments and is able to also texture them with a sci-fi/horror vibe.
      Right now the game is in mid-early development and you can see more information about it and follow our progress in our game jolt page here: https://gamejolt.com/games/devilspunishment/391190 . We expect to finish some sort of prototype in 2-3 months from now.
      This is a contract rev-share position
      If you are interested in joining, contributing or have questions about the project then let's talk. You can message me in Discord: world_creator#9524
    • By jb-dev
      You might want to break this one just in case...
    • By jb-dev
      This is a picture of plants of the Anthurium genus, and particularly the kind you could find in a rainforest.

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!