Skip to content

Commit b3c44d9

Browse files
committed
avatar ignores reset, make AvatarMoving display distinct from empty Path
1 parent 071d2f7 commit b3c44d9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

DungeonCrawl.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,16 @@ void Avatar() {
5050
case MOVE: //avatar is being pulled to neighbor revert to path
5151
state = Path0;
5252
break;
53-
case RESET:
54-
state = ResetBroadcast0;
55-
break;
5653
}
5754
}
5855
}
59-
if (buttonLongPressed()) {
60-
state = ResetBroadcast0;
61-
}
6256
}
6357

6458
void AvatarMoving0() {
6559
setValueSentOnFace(MOVE, heading); //tell neighbor avatar is moving here
60+
setColorOnFace(AVATAR_COLOR, heading);
61+
setColorOnFace(AVATAR_COLOR, (heading + 1) % 6);
62+
setColorOnFace(AVATAR_COLOR, (heading + 5) % 6);
6663
state = AvatarMoving;
6764
}
6865

0 commit comments

Comments
 (0)