mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
Formatierung angepasst
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import schule.ngb.zm.DrawableLayer;
|
import schule.ngb.zm.DrawableLayer;
|
||||||
import schule.ngb.zm.Zeichenmaschine;
|
import schule.ngb.zm.Zeichenmaschine;
|
||||||
|
|
||||||
public class TIXY extends Zeichenmaschine {
|
public class TIXY extends Zeichenmaschine {
|
||||||
|
|
||||||
public static final int FIELD_SIZE = 16;
|
public static final int FIELD_SIZE = 16;
|
||||||
|
|
||||||
@@ -9,6 +9,9 @@ public class TIXY extends Zeichenmaschine {
|
|||||||
|
|
||||||
public static final int DOT_GAP = 4;
|
public static final int DOT_GAP = 4;
|
||||||
|
|
||||||
|
public static void main( String[] args ) {
|
||||||
|
new TIXY();
|
||||||
|
}
|
||||||
|
|
||||||
private Dot[][] dots;
|
private Dot[][] dots;
|
||||||
|
|
||||||
@@ -34,7 +37,7 @@ public class TIXY extends Zeichenmaschine {
|
|||||||
dots = new Dot[FIELD_SIZE][FIELD_SIZE];
|
dots = new Dot[FIELD_SIZE][FIELD_SIZE];
|
||||||
for( int i = 0; i < FIELD_SIZE; i++ ) {
|
for( int i = 0; i < FIELD_SIZE; i++ ) {
|
||||||
for( int j = 0; j < FIELD_SIZE; j++ ) {
|
for( int j = 0; j < FIELD_SIZE; j++ ) {
|
||||||
dots[i][j] = new Dot(i, j, i*FIELD_SIZE + j);
|
dots[i][j] = new Dot(i, j, i * FIELD_SIZE + j);
|
||||||
dl.add(dots[i][j]);
|
dl.add(dots[i][j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,16 +52,12 @@ public class TIXY extends Zeichenmaschine {
|
|||||||
for( int i = 0; i < FIELD_SIZE; i++ ) {
|
for( int i = 0; i < FIELD_SIZE; i++ ) {
|
||||||
for( int j = 0; j < FIELD_SIZE; j++ ) {
|
for( int j = 0; j < FIELD_SIZE; j++ ) {
|
||||||
Dot d = dots[i][j];
|
Dot d = dots[i][j];
|
||||||
double value = tixy.update(runtime/1000.0, d.i, d.x, d.y);
|
double value = tixy.update(runtime / 1000.0, d.i, d.x, d.y);
|
||||||
dots[i][j].setValue(value);
|
dots[i][j].setValue(value);
|
||||||
|
|
||||||
tixy.update(runtime/1000.0, dots[i][j]);
|
tixy.update(runtime / 1000.0, dots[i][j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main( String[] args ) {
|
|
||||||
new TIXY();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user