mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
39 lines
570 B
Java
39 lines
570 B
Java
import schule.ngb.zm.Zeichenmaschine;
|
|
|
|
public class Eyes extends Zeichenmaschine {
|
|
|
|
public static final int N_EYES = 30;
|
|
|
|
public static void main( String[] args ) {
|
|
new Eyes();
|
|
}
|
|
|
|
Eye[] eyes;
|
|
|
|
public Eyes() {
|
|
super(600, 600, "Eyes");
|
|
}
|
|
|
|
@Override
|
|
public void setup() {
|
|
eyes = new Eye[N_EYES];
|
|
for( int i = 0; i < eyes.length; i++ ) {
|
|
eyes[i] = new Eye();
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void update( double delta ) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void draw() {
|
|
drawing.clear(200);
|
|
|
|
for( int i = 0; i < eyes.length; i++ ) {
|
|
eyes[i].draw(drawing);
|
|
}
|
|
}
|
|
}
|