nick_matrix: show nick on random locations
This commit is contained in:
parent
ff98c7de21
commit
423df99c9a
|
@ -93,6 +93,9 @@ void ram(void){
|
||||||
case NICKNAME_ACTION_SHOW:
|
case NICKNAME_ACTION_SHOW:
|
||||||
nickname_action = NICKNAME_ACTION_HIDE;
|
nickname_action = NICKNAME_ACTION_HIDE;
|
||||||
ticks_until_next_nickname_action = TICKS_HIDE_NICKNAME;
|
ticks_until_next_nickname_action = TICKS_HIDE_NICKNAME;
|
||||||
|
// new nickname_pos
|
||||||
|
nickname_posx = getRandom() % (SCREEN_WIDTH - nickname_len);
|
||||||
|
nickname_posy = getRandom() % SCREEN_HEIGHT;
|
||||||
break;
|
break;
|
||||||
case NICKNAME_ACTION_HIDE:
|
case NICKNAME_ACTION_HIDE:
|
||||||
nickname_action = NICKNAME_ACTION_SHOW;
|
nickname_action = NICKNAME_ACTION_SHOW;
|
||||||
|
|
Loading…
Reference in New Issue