summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-12-30 15:59:56 +0100
committerAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-12-30 15:59:56 +0100
commit77d976bad1c950d2a8e6e28f116ebc47c764528b (patch)
tree546f5cc89d0f058fa528b2c3b516c42c6500c3e3
parent0b164e2a515135e8a48d7b03a468ea67d477312f (diff)
downloadledmatrix-77d976bad1c950d2a8e6e28f116ebc47c764528b.tar
ledmatrix-77d976bad1c950d2a8e6e28f116ebc47c764528b.zip
Die Mauer kann jetzt faden und nicht faden.
-rw-r--r--Matrix_5x6/Charlie/Charlie.pde20
1 files changed, 10 insertions, 10 deletions
diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde
index d8884d0..1c3ea2e 100644
--- a/Matrix_5x6/Charlie/Charlie.pde
+++ b/Matrix_5x6/Charlie/Charlie.pde
@@ -210,14 +210,14 @@ void lauftext(char *text) {
}
-void bmauer( int x, int y){
+void bmauer( int x, int y, boolean z){
scr[x][y] = 20;
- drawscr(5);
- fadescr_down();
+ drawscr(3);
+ if (z) fadescr_down();
}
-void mauer(int dir) {
+void mauer(int dir, boolean fade) {
/*
0=up 1=down 2=right 3=left
*/
@@ -227,25 +227,25 @@ void mauer(int dir) {
case 0:
for (int i=0;i<y;i++)
for (int j=0;j<x;j++) {
- bmauer(j,i);
+ bmauer(j,i,fade);
}
break;
case 1:
for (int i=y-1;i>=0;i--)
for (int j=0;j<x;j++) {
- bmauer(j,i);
+ bmauer(j,i,fade);
}
break;
case 2:
for (int i=0;i<x;i++)
for (int j=0;j<y;j++) {
- bmauer(i,j);
+ bmauer(i,j,fade);
}
break;
case 3:
for (int i=x-1;i>=0;i--)
for (int j=0;j<y;j++) {
- bmauer(i,j);
+ bmauer(i,j,fade);
}
break;
@@ -267,7 +267,7 @@ void loop() {
// schnecke(random(4));
// clrscr();
// mauer(0);
-// clrscr();
-mauer(random(4));
+clrscr();
+mauer(random(4),false);
}