vincetiu8 / zombie-game

A top-down, 2D zombie survival game in Unity
1 stars 0 forks source link

Add ammo types #43

Closed vincetiu8 closed 3 years ago

vincetiu8 commented 3 years ago

We should add several classes of bullets into the game, suitable for each gun:

These are NOT related to the bullet prefabs, more so that when each gun is reloaded, it will draw from the bullets of the gun's type. If the player runs out of that ammo type in their inventory, they can't reload further.

RoteeSaiMai commented 3 years ago

Hmmmm, just a suggestion here, no need to do exactly what I say, but I think a type of ammo for every single gun would be abit excessive and impratical. Wouldn't it be better to implement an ammo system similar to the one the destiny games uses?

Summary of what the system is:

There are 3 types of weapons:

Each weapon type uses a specific color of ammunition

The type of weapon is determined by the weapon’s archetype.

Ammo drops with more chances at a drop coming from stronger enemies.

Guns that use rarer are better by nature, but will come across ammo problems much easier, so introduces an element of stratedy to the game.

vincetiu8 commented 3 years ago

I mean this is true, but I was thinking of eventually having many different types of AR, Snipers, etc., so 3 ammo types might be a bit limiting.

vincetiu8 commented 3 years ago

Also if we go by my route we could name the ammo after caliber like other games.

vincetiu8 commented 3 years ago

Actually, I take this back completely. Let's just have the ammo types @RoteeSaiMai suggested for now but the implementation of this should allow for more types to be added in the future. Perhaps an Enum could be used?

RKSDude commented 3 years ago

Maybe we could have a compromise between both systems. Perhaps something like certain weapons sharing a certain type of ammo as seen the DOOM games. This would allow for decent weapon variety without getting bogged down with a different ammo type for each weapon. Just wanted to clarify before I start working on this.

vincetiu8 commented 3 years ago

I think the only difference between the two systems was the number of ammo types: I didn't mean to have a different ammo type for each gun!

@RKSDude just make like 3 ammo types for now but make sure the system is extensible in the future in case we do want to add more. Use Enum to achieve that.