Player 1 uses keys A & D. Player 2 uses the left arrow and right arrow keys. If you touch the opposing rocket's line, then you lose. If the opposing rocket touches your line, then you win. This is Tron Game.
used a tutorial provided by school: https://www.youtube.com/watch?v=-rlSE6b_QiA its a school project