Bit Masking

In this project, I utilized the bit masking technique to efficiently manage and store multiple data values within a single 8-bit integer, optimizing memory usage. This approach is particularly useful in game development for scenarios like tracking player abilities.

The game involves collecting different abilities, which are represented as individual bits in the integer. Each ability can be activated or deactivated by manipulating its corresponding bit using bitwise operations. This design not only saves memory but also simplifies logic by enabling fast checks and updates for specific abilities, enhancing performance and scalability.

Created In: 2019
Collaboration: Solo
Game Engine: Unity- C#

Pure CSS3 Tabs
  • Ability

  • Item