Fix Swim and balance
[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
18 * code guts are embedded in the GLucose library extension. If you're an
19 * artist, you shouldn't need to worry about any of that.
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
49815cc0
MS
26LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
09437b3e 28
1a92d73a
AG
29 new SineSphere(glucose),
30 //new CubeCurl(glucose),
31
d1dcc4b5 32 // Slee
fa1767c1
AG
33 // new Cathedrals(glucose),
34 new Swarm(glucose),
d93c968f 35 new MidiMusic(glucose),
0137237d 36 new Pulley(glucose),
fa1767c1 37
4760e696 38 new ViolinWave(glucose),
d1dcc4b5 39 new BouncyBalls(glucose),
87f6fa39 40 new SpaceTime(glucose),
1627a617
MS
41 new ShiftingPlane(glucose),
42 new AskewPlanes(glucose),
87f6fa39
MS
43 new Blinders(glucose),
44 new CrossSections(glucose),
45 new Psychedelia(glucose),
4c006f7b
MS
46
47 new Traktor(glucose).setEligible(false),
48 new BassPod(glucose).setEligible(false),
254fbb68
MS
49 new CubeEQ(glucose).setEligible(false),
50 new PianoKeyPattern(glucose).setEligible(false),
4c006f7b 51
d1dcc4b5 52 // DanH
4c006f7b 53 new Noise(glucose),
7e3329d2 54 new Play (glucose),
55 new Pong (glucose),
56 new Worms(glucose),
4c006f7b 57
0b1785e3 58 // Alex G
1d414e45 59
fa1767c1
AG
60 // Tim
61 new TimPlanes(glucose),
62 new TimPinwheels(glucose),
63 new TimRaindrops(glucose),
64 new TimCubes(glucose),
65 // new TimTrace(glucose),
66 new TimSpheres(glucose),
67
8cedfe61 68
4c006f7b
MS
69
70 // Toby
a673599f 71 new GlitchPlasma(glucose),
254fbb68 72 new FireEffect(glucose).setEligible(false),
b4aaf4e4 73 new StripBounce(glucose),
254fbb68
MS
74 new SoundRain(glucose).setEligible(false),
75 new SoundSpikes(glucose).setEligible(false),
821ceae9 76 new FaceSync(glucose),
b6641090
MS
77
78 // Jack
79 new Swim(glucose),
8185ec8f 80 new Balance(glucose),
b6641090 81
fa1767c1 82
b6641090 83 // Ben
51227786 84 // new Sandbox(glucose),
467c8c60 85 new TowerParams(glucose),
b6641090
MS
86 new DriveableCrossSections(glucose),
87 new GranimTestPattern2(glucose),
51227786 88
fa1767c1
AG
89 // Shaheen
90 //new HelixPattern(glucose).setEligible(false),
91
51227786 92 //JR
a7c8d80a 93 new Gimbal(glucose),
51227786 94
b6641090
MS
95 // Sam
96 new JazzRainbow(glucose),
80785186 97
0208d845
AB
98 // Arjun
99 new TelevisionStatic(glucose),
100 new AbstractPainting(glucose),
101 new Spirality(glucose),
a7c8d80a 102
254d34c0 103 // Basic test patterns for reference, not art
bfff6bc2 104 new TestCubePattern(glucose),
186bc4d3 105 new TestTowerPattern(glucose),
0ba6ac44 106 new TestProjectionPattern(glucose),
254fbb68 107 new TestStripPattern(glucose),
1d75c8a9
MS
108 new TestBassMapping(glucose),
109 new TestFloorMapping(glucose),
110 new TestSpeakerMapping(glucose),
186bc4d3
MS
111 // new TestHuePattern(glucose),
112 // new TestXPattern(glucose),
113 // new TestYPattern(glucose),
114 // new TestZPattern(glucose),
f3f5a876 115
49815cc0
MS
116 };
117}
118
119LXTransition[] transitions(GLucose glucose) {
120 return new LXTransition[] {
3f8be614 121 new DissolveTransition(lx),
32986078 122 new AddTransition(glucose),
fe30b226 123 new MultiplyTransition(glucose),
fe30b226 124 new OverlayTransition(glucose),
32986078 125 new DodgeTransition(glucose),
49815cc0 126 new SwipeTransition(glucose),
3f8be614 127 new FadeTransition(lx),
32986078 128// new SubtractTransition(glucose), // similar to multiply - dh
129// new BurnTransition(glucose), // similar to multiply - dh
130// new ScreenTransition(glucose), // same as add -dh
131// new SoftLightTransition(glucose), // same as overlay -dh
49815cc0
MS
132 };
133}
134
75e1ddde 135// Handles to globally triggerable effects
24fc0330
MS
136class Effects {
137 FlashEffect flash = new FlashEffect(lx);
138 BoomEffect boom = new BoomEffect(glucose);
139 BlurEffect blur = new BlurEffect(glucose);
140 QuantizeEffect quantize = new QuantizeEffect(glucose);
141 ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
142
143 Effects() {
144 blur.enable();
145 quantize.enable();
146 colorFucker.enable();
147 }
49815cc0 148}
24fc0330 149