Dots4.java
instructions:
click in the black squre.
then press the arrow keys to move up, down, left or right.
or press U/u for up, D/d for down, L/l for left, or R/r for right.
comments:
This version implements a KeyListener as part of the Dots class.
The paint() function is called to draw on the canvas.
source code:
|
|
Dots5.java
instructions:
click in the black square.
press the arrow keys to move up, down, left or right.
or press U/u for up, D/d for down, L/l for left, or R/r for right.
comments:
This version implements a KeyListener as part of the Dots class.
The update() function is called to draw on the canvas.
source code:
|
|