Robots: Difference between revisions

→‎{{header|Java}}: Added line to disable keystrokes until game starts which otherwise causes an exception
(Added Kotlin)
(→‎{{header|Java}}: Added line to disable keystrokes until game starts which otherwise causes an exception)
Line 268:
@Override
public void keyPressed(KeyEvent e) {
if (gameOver) return; // disable keystrokes until game starts
int keyCode = e.getKeyCode();
 
9,476

edits