java Programming Glossary: player2
Game (with KeyListener) does not respond to user input? http://stackoverflow.com/questions/10440246/game-with-keylistener-does-not-respond-to-user-input a s d w to control Player1 and the arrow keys to control Player2. Class Robot imports ... public class Robot extends JComponent.. default System.out.println hi break Class Player1 and Player2 public class Player1 extends Robot Player1 xPos 300 yPos 300.. 100 100 g2.setPaint Color g2.draw ball g2.fill ball Class Player2 is the same exact copy. The xPos 500 yPos 500 xVel 10 yVel 10..
|