Collecting Task & Game Improvement

16/7/2020

I am mainly adding a new task according to our updated story this week. But there’s still some bug here waiting me to fix it later.

I improve the player perception to the game by adding some details:

  • Adding sound effect
  • Adding black-in and black-out to transit the scene
  • Adding HP to the slime inside the shooting task
  • Adding shaking effect to slime when the slime is dead

FPS Improvement

25/6/2020

When we are working on a big scene, we find out that the game performance drop rapidly. The maximum frame per seconds (FPS) on my computer is only 9 FPS, which is extremely low FPS and it disturbs my working process due to the big latency.

To reduce the CPU usage, I temperately disable the shadow on the scene in order to improve my working environment. But I am not sure if this problem happens on editor only or also happens on the final game output.

So, we are now exploring the method on reduce the CPU usage of the game via the following methods:

  1. Using baked lightmap instead of real time lightmap
  2. Applying occlusion culling reduce useless rendering
  3. Setting LOD to 3D model to replace the current model to a lower resolution model with lower polycount
  4. Setting animation to ‘cull completely’ so that it will not rendering it when it is not inside camera view
  5. Avoid using Update() function to call the method

Bug Fixing of Shooting Task

16/6/2020

I add the HP function to check if player is dead under slime attack or not.

But the HP bar reduction effect was not worked as expected. It keeps reducing HP after receiving any hurts, and it will fill the HP value when player receive next damages.

The problem is probably caused by the script is receiving the wrong HP value. Because the HP bar need a floating value to set the HP deduction effect, the dividing result of two integer value always return a 0 value to it. So I correct the commands as following.

before
after

And it works fine now, even there are more than one slime that is attacking the player.