luigi: just use the three frames in a loop

This commit is contained in:
nick black 2019-12-10 12:20:44 -05:00
parent 206db6dedd
commit c7c52f21d5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -178,11 +178,7 @@ int luigi_demo(struct notcurses* nc){
if(lastseen){ // hide the previous sprite
ncplane_move_yx(lastseen, yoff, -16);
}
if(i % 4 == 3){
lastseen = lns[1];
}else{
lastseen = lns[i % 4];
}
lastseen = lns[i % 3];
ncplane_move_yx(lastseen, yoff, i);
notcurses_render(nc);
nanosleep(&stepdelay, NULL);