weird merge shit
[SugarCubes.git] / SugarCubes.pde
CommitLineData
49815cc0
MS
1/**
2 * +-+-+-+-+-+ +-+-+-+-+-+
3 * / /| |\ \
0e3c5542 4 * / / + + \ \
49815cc0
MS
5 * +-+-+-+-+-+ | +-+-+-+-+ | +-+-+-+-+-+
6 * | | + / \ + | |
7 * + THE + / / \ \ + CUBES +
8 * | |/ +-+-+-+-+-+-+-+ \| |
9 * +-+-+-+-+-+ | | +-+-+-+-+-+
10 * + +
11 * | SUGAR |
12 * + +
13 * | |
14 * +-+-+-+-+-+-+-+
15 *
16 * Welcome to the Sugar Cubes! This Processing sketch is a fun place to build
17 * animations, effects, and interactions for the platform. Most of the icky
b9b7b3d4
MS
18 * code guts are embedded in the HeronLX library, or files prefixed with
19 * an underscore. If you're an artist, you shouldn't need to worry about that.
49815cc0
MS
20 *
21 * Below, you will find definitions of the Patterns, Effects, and Interactions.
22 * If you're an artist, create a new tab in the Processing environment with
23 * your name. Implement your classes there, and add them to the list below.
24 */
75e1ddde 25
dde75983 26LXPattern[] patterns(LX lx) {
4861d6c4 27 return new LXPattern[] {
2815b690 28
31b2d042 29<<<<<<< HEAD
f7f0bfe5
LW
30 new SineSphere(glucose),
31 //new CubeCurl(glucose),
ab65d40b 32 // DanH
33 new Noise(glucose),
34 new Play (glucose),
35 new Pong (glucose),
36 new Worms(glucose),
37
31b2d042 38=======
dde75983
MS
39 new SineSphere(lx),
40 //new CubeCurl(lx),
1a92d73a 41
31b2d042 42>>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
d1dcc4b5 43 // Slee
dde75983
MS
44 // new Cathedrals(lx),
45 new Swarm(lx),
46 new MidiMusic(lx),
47 new Pulley(lx),
fa1767c1 48
31b2d042 49<<<<<<< HEAD
4760e696 50 new ViolinWave(glucose),
d1dcc4b5 51 new BouncyBalls(glucose),
87f6fa39 52 new SpaceTime(glucose),
1627a617
MS
53 new ShiftingPlane(glucose),
54 new AskewPlanes(glucose),
87f6fa39
MS
55 new Blinders(glucose),
56 new CrossSections(glucose),
57 new Psychedelia(glucose),
ab65d40b 58 new TimRaindrops(glucose),
59 new TimCubes(glucose),
6a4882dd 60 new MultipleCubes(glucose),
4c006f7b
MS
61
62 new Traktor(glucose).setEligible(false),
63 new BassPod(glucose).setEligible(false),
254fbb68
MS
64 new CubeEQ(glucose).setEligible(false),
65 new PianoKeyPattern(glucose).setEligible(false),
ab65d40b 66
67 new StripBounce(glucose),
4c006f7b 68
69f25521 69 // AntonK
ab65d40b 70 //new AKPong(glucose),
71 new Swim(glucose),
72 new Balance(glucose),
73
31b2d042 74=======
dde75983
MS
75 new ViolinWave(lx),
76 new BouncyBalls(lx),
77 new SpaceTime(lx),
78 new ShiftingPlane(lx),
79 new AskewPlanes(lx),
80 new Blinders(lx),
81 new CrossSections(lx),
82 new Psychedelia(lx),
6a4882dd 83
dde75983 84 new MultipleCubes(lx),
4c006f7b 85
dde75983
MS
86 new Traktor(lx).setEligible(false),
87 new BassPod(lx).setEligible(false),
88 new CubeEQ(lx).setEligible(false),
89 new PianoKeyPattern(lx).setEligible(false),
4c006f7b 90
b9b7b3d4 91 // AntonK
dde75983 92 new AKPong(lx),
69f25521 93
d1dcc4b5 94 // DanH
dde75983
MS
95 new Noise(lx),
96 new Play (lx),
97 new Pong (lx),
98 new Worms(lx),
31b2d042 99>>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
4c006f7b 100
ab65d40b 101
102
58888c69 103 // JR
dde75983 104 new Gimbal(lx),
58888c69 105
0b1785e3 106 // Alex G
1d414e45 107
31b2d042 108<<<<<<< HEAD
fa1767c1 109 // Tim
9f73bc0e 110 new TimMetronome(glucose),
fa1767c1
AG
111 new TimPlanes(glucose),
112 new TimPinwheels(glucose),
ab65d40b 113
fa1767c1
AG
114 // new TimTrace(glucose),
115 new TimSpheres(glucose),
31b2d042 116=======
b9b7b3d4 117 // Tim
dde75983
MS
118 new TimMetronome(lx),
119 new TimPlanes(lx),
120 new TimPinwheels(lx),
121 new TimRaindrops(lx),
122 new TimCubes(lx),
123 // new TimTrace(lx),
124 new TimSpheres(lx),
31b2d042 125>>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
fa1767c1 126
37ab5878 127 // Jackie
dde75983
MS
128 new JackieSquares(lx),
129 new JackieLines(lx),
130 new JackieDots(lx),
4a60ba58 131
4861d6c4 132 // L8on
dde75983
MS
133 new L8onAutomata(lx),
134 new L8onLife(lx),
135 new L8onStripLife(lx),
2815b690 136
20e7c94f 137 // Vincent
dde75983 138 new VSTowers(lx),
4c006f7b
MS
139
140 // Toby
31b2d042 141<<<<<<< HEAD
a673599f 142 new GlitchPlasma(glucose),
254fbb68 143 new FireEffect(glucose).setEligible(false),
ab65d40b 144
254fbb68
MS
145 new SoundRain(glucose).setEligible(false),
146 new SoundSpikes(glucose).setEligible(false),
821ceae9 147 new FaceSync(glucose),
b6641090
MS
148
149 // Jack
31b2d042 150=======
dde75983
MS
151 new GlitchPlasma(lx),
152 new FireEffect(lx).setEligible(false),
153 new StripBounce(lx),
154 new SoundRain(lx).setEligible(false),
155 new SoundSpikes(lx).setEligible(false),
156 new FaceSync(lx),
b6641090
MS
157
158 // Jack
dde75983
MS
159 new Swim(lx),
160 new Balance(lx),
31b2d042 161>>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
fa1767c1 162
b6641090 163 // Ben
dde75983
MS
164 // new Sandbox(lx),
165 new TowerParams(lx),
166 new DriveableCrossSections(lx),
167 new GranimTestPattern2(lx),
51227786 168
fa1767c1 169 // Shaheen
dde75983 170 // new HelixPattern(lx).setEligible(false),
fa1767c1 171
b6641090 172 // Sam
dde75983 173 new JazzRainbow(lx),
80785186 174
0208d845 175 // Arjun
dde75983
MS
176 new TelevisionStatic(lx),
177 new AbstractPainting(lx),
178 new Spirality(lx),
a7c8d80a 179
254d34c0 180 // Basic test patterns for reference, not art
dde75983
MS
181 new TestCubePattern(lx),
182 new TestTowerPattern(lx),
183 new TestProjectionPattern(lx),
184 new TestStripPattern(lx),
185 // new TestHuePattern(lx),
186 // new TestXPattern(lx),
187 // new TestYPattern(lx),
188 // new TestZPattern(lx),
f3f5a876 189
49815cc0
MS
190 };
191}
192
dde75983 193LXTransition[] transitions(LX lx) {
49815cc0 194 return new LXTransition[] {
3f8be614 195 new DissolveTransition(lx),
a22015f4
MS
196 new AddTransition(lx),
197 new MultiplyTransition(lx),
198 new OverlayTransition(lx),
199 new DodgeTransition(lx),
200 new SwipeTransition(lx),
3f8be614 201 new FadeTransition(lx),
49815cc0
MS
202 };
203}
204
75e1ddde 205// Handles to globally triggerable effects
24fc0330
MS
206class Effects {
207 FlashEffect flash = new FlashEffect(lx);
a22015f4
MS
208 BoomEffect boom = new BoomEffect(lx);
209 BlurEffect blur = new BlurEffect(lx);
210 QuantizeEffect quantize = new QuantizeEffect(lx);
211 ColorFuckerEffect colorFucker = new ColorFuckerEffect(lx);
24fc0330
MS
212
213 Effects() {
214 blur.enable();
215 quantize.enable();
216 colorFucker.enable();
217 }
49815cc0 218}
24fc0330 219