Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -1,6 +1,6 @@
/*
* we use the following conventions:
* directions 0: up, 1: right, 2: down: 3: left
* directions 0: up, 1: left, 2: down: 3: right
*
* pixel white: true, black: false
*
@ -36,7 +36,7 @@ int count=0;
void draw() {
for(int i=0;i<STEP;i++) {
count++;
boolean pix=get(x,y)!=-1;
boolean pix=get(x,y)!=-1; //white =-1
setBool(x,y,pix);
turn(pix);
@ -59,13 +59,13 @@ void move() {
y--;
break;
case 1:
x++;
x--;
break;
case 2:
y++;
break;
case 3:
x--;
x++;
break;
}
}