It's probably more logical to have the up and down arrow as inputs for one player and the other player have keys such as 'w' and 's'.
Collision detection needs some work. There are many different collision detection algorithms that you can look up on the internet for reference.
Want to leave a comment?
You must first log in,
and be a member for more than a week.
2019/5/14