root / trunk / code / behaviors / tetris_dance / README @ 2000
History | View | Annotate | Download (1.36 KB)
1 |
_____ _____ _____ ____ ___ ____ |
---|---|
2 |
|_ _| ____|_ _| _ \|_ _/ ___| |
3 |
| | | _| | | | |_) || |\___ \ |
4 |
| | | |___ | | | _ < | | ___) | |
5 |
|_| |_____| |_| |_| \_\___|____/ |
6 |
|
7 |
An overly-silly lab0 by |
8 |
Jeff Cooper and Priya Deo, |
9 |
Fall 2010 |
10 |
====================================== |
11 |
|
12 |
You're reading the README, good for you! |
13 |
|
14 |
Here's how this code breaks down: |
15 |
|
16 |
mastercode/: |
17 |
lab0.c |
18 |
music.c |
19 |
Makefile |
20 |
|
21 |
slavecode/: |
22 |
lab0.c |
23 |
music.c |
24 |
Makefile |
25 |
|
26 |
music.c |
27 |
|
28 |
You'll notice that music.c exists three times. |
29 |
It's the same file, don't worry. |
30 |
|
31 |
Mastercode is the stand-alone version of the tetris dance, |
32 |
and also the only one that dances. It turns the BOM on and off |
33 |
at various points during the song to synchronize with the bots |
34 |
running slavecode. |
35 |
|
36 |
Slavecode contains the song and lights but no dance. It won't |
37 |
play the song (or repeat it, when it ends) without a signal from a BOM, |
38 |
and it turns on it's own BOM when it gets that signal so you can chain |
39 |
them across a room (note: this is a good way to get tired and/or grouchy |
40 |
people to step on "those little buggers making that gosh-darned racket.") |
41 |
->The slavecode can be started by pushing button1. This will |
42 |
turn on the BOM and start other slaves. |
43 |
|
44 |
|
45 |
DISCLAIMER: |
46 |
------------ |
47 |
The music library is cool and relatively accurate, but it can also |
48 |
be insanely annoying. Use it at your own risk and with discretion. |
49 |
|