Player 1 (right side) - WASD to move, Q for primary attack, E for secondary, and F for powerup Player 2 (left side) - Arrow keys to move, N for primary, Q for secondary, and K for powerup. Your powerup is represented by the bottle in the top corners of the screen. When its full, you can use it!
Some of the biggest challenges I had while programming: 1. Making not every shot land. Since two people are playing at once, obviously both players cannot aim at the same time, so I had to create an aim simulation engine. It works by making shots less accurate the faster you are moving, just like how a game would be if you were actually aiming. 2. AI clones for the ninja. The ninja was one of the first characters I made for the game. He is stealthy quick, and agile. I felt like it would have fit to have his powerup create decoys and make it harder for the opponent to aim. Creating this was much more difficult then I thought, because I couldn't just assign the decoys random movement, I had to make it look like an actual player. To solve this, I created relatively simple AI (although hard on scratch) and had the decoys "prefer" a certain type of movement. I made the decoys want to go toward the opponent, while also seeming cautious just like a real player. I did this by converting each players movement into a series of numbers that the AI mimics. 3.