From 1b64f1e69bfbffc0e70ba3a1baff00ed3fd8cb51 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sun, 24 May 2015 04:00:01 +0200 Subject: experimenting with brand new gaming mode --- userspace/snake.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'userspace') diff --git a/userspace/snake.c b/userspace/snake.c index 8352d1b..7deaa6c 100644 --- a/userspace/snake.c +++ b/userspace/snake.c @@ -9,10 +9,18 @@ int main() while(1) { + uint8_t x=0; + while(!has_data_waiting()) { + x++; + putc('\b',stdout); + if(x%4==0)putc('/',stdout); + if(x%4==1)putc('-',stdout); + if(x%4==2)putc('\\',stdout); + if(x%4==3)putc('|',stdout); } char c=fgetc(stdin); -- cgit v1.2.3