Build a wall fight zombies pvp(蓋牆打殭屍)
Just like other Infect zombie games but with the addition of building walls to block zombie attacks
and special hero characters
People get money for beating zombies, and zombies get money for beating walls
("Wall HP: press the reload key R to build a store)")
("Wall self-healing: press the key Q to build a store)"
("Attack Power: melee attack building store)"),
("Wall HP: Display the wall HP)"),
Interact (F key) to stand within the aperture of the shop to buy
Torbjörn attack is 100, press Q to change Genji
Torbjörn life is 350, press Q to change into an Winston
Winston life 368 attack 45 press Q to become Roadhog
Roadhog life up to 400 attack 55 Press Q to change into a horse
Torbjörn's running speed is 170, press Q to change to mercy
Mercy running speed 181 attack 55 press Q press Q to change DVA
Press squat to upgrade (requires value to be reached)
Hero: Attack 230 becomes the 2nd stage > 450 becomes the 3rd stage
76 ordinary people (crouching): Attack 130 changes to the second stage > 280 changes to the third stage > 500 changes to the fourth stage
Interaction (key F) = the wall can only be built once
Reinhardt (Zombie King):
HP 200 Attack Power 40 Running Speed 150 Ultimate (button Q) becomes Sigma
Sigma Life 300 Attack 70 Running Speed 181 Press Q to change to Moira
The Zombie King can use the interaction key (table key F) to build spawn points and stores can only be built once
("PS. Heroes bully you
You can hit him on the head and 50% will die
don't kill heroes on purpose
Otherwise I might have pulled the hero out of the game lol
Let everyone stop playing hero roles")
Bastion: machine gun mode(E) - When machine gun mode, you will be sped up for a moment.
tank mode(Q) -Invulnerable .
Hamster: Adaptive Leather (E) - Invulnerable and faster while shield is in place.
Ashe: (Shift) - When hitting zombies, they are stunned for 1.5 seconds and pushed back.
(E) - When a zombie is destroyed by an explosion, its speed is reduced by 70% for 3 seconds.
Ana: Sleep Gun (Shift) - When a zombie falls asleep, it inflicts 15% of its max health every second while sleeping.
Bio Grenade (E) stuns zombies for 3 seconds
Nano Enhancer (Q) - Increases movement speed, invulnerability and invisibility for the duration
If the basic attack is hit by a zombie, the zombie is stunned for 1 second.
Mei: When a zombie is frozen, the basic attack Freeze deals 40% damage of max health.
This is the game code I made for the first time
Please bear with me if there are errors