summaryrefslogtreecommitdiffstats
path: root/Matrix_5x6
diff options
context:
space:
mode:
Diffstat (limited to 'Matrix_5x6')
-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);
}