Skip to content

Commit 61db906

Browse files
committed
blurn: tweak controls
1 parent 6290fa1 commit 61db906

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

l0dables/blurn.c

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ void ram(void)
7777
lcdPrintln("blurn");
7878
lcdPrintln("underdamped blur");
7979
lcdNl();
80-
lcdPrintln("ENTER: respawn");
81-
lcdPrintln("DOWN/UP: overdamp");
82-
lcdPrintln("RIGHT: underdamp++");
83-
lcdPrintln("LEFT: exit");
80+
lcdPrintln("DOWN/UP cool down");
81+
lcdPrintln("LEFT/RIGHT heat up");
82+
lcdPrintln("ENTER exit");
8483
lcdNl();
8584
lcdPrintln("any key to start");
8685
lcdDisplay();
@@ -126,7 +125,6 @@ void ram(void)
126125
}
127126

128127
while (1) {
129-
random_seed ++;
130128
{
131129
// draw in screen resolution and repeat the high res image
132130
uint lcd_pos = 0;
@@ -196,18 +194,17 @@ void ram(void)
196194

197195
case BTN_RIGHT:
198196
for (uint i = 0; i < N; i++) {
199-
pixels[i] /= 8.67;
197+
pixels[i] /= 8.58;
200198
}
201199
break;
202200

203-
case BTN_ENTER:
204-
srand(random_seed);
201+
case BTN_LEFT:
205202
for (uint i = 0; i < N; i++) {
206-
pixels[i] = rand();
203+
pixels[i] /= 8.67;
207204
}
208205
break;
209206

210-
case BTN_LEFT:
207+
case BTN_ENTER:
211208
return;
212209
}
213210
}

0 commit comments

Comments
 (0)