Day 4 of implemenation 13.7.2021


Lo and behold! In the end I managed to make the multiplayer work on one keyboard. The problem is with Unitys Input Manager, that assigns to each device at most one player, which is kind of a problem for one keyboard multiplayer games. But after a couple of hours of googling and studying Unitys Input Manager's code, I just coded my Multiplayer Manager, that manually assigns several players to one keyboard. And thus the problem was solved. I really like the smoothness with which the players move even though it's for 4 players on one keyboard. In the past I created another 2 player multiplayer game, but in Winforms (don't judge), and it was much more laggier. So Unity FTW. 

Then I started scripting of the shooting. I don't have sprites of the guns yet, so the bullets are spawning in the air for now. I implemented simple one press, one bullet shoot, that will be used for glock. And since I could shoot, it was also the time to implement dying and respawning, so I did just that. Players can now respawn 5 times, before they are out of game. Will add later on some counter, how many respawns are left. Also when respawning, there is a delay, when the player should be invisible, but for some reason he still can shoot, so I will have to fix that. But otherwise, enjoy the first playable version! 

Files

CountryBallsV3.zip 18 MB
Jul 13, 2021

Get COUNTRY STRIKE: (GLO)BALL OFFENSIVE

Leave a comment

Log in with itch.io to leave a comment.