Add blank pattern to right deck, clean up bouncyballs
[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[] {
e28f168c 28
d1dcc4b5
MS
29 // Slee
30 new BouncyBalls(glucose),
87f6fa39
MS
31 new Swarm(glucose),
32 new SpaceTime(glucose),
1627a617
MS
33 new ShiftingPlane(glucose),
34 new AskewPlanes(glucose),
87f6fa39
MS
35 new Blinders(glucose),
36 new CrossSections(glucose),
37 new Psychedelia(glucose),
4c006f7b
MS
38
39 new Traktor(glucose).setEligible(false),
40 new BassPod(glucose).setEligible(false),
254fbb68
MS
41 new CubeEQ(glucose).setEligible(false),
42 new PianoKeyPattern(glucose).setEligible(false),
4c006f7b 43
d1dcc4b5 44 // DanH
4c006f7b 45 new Noise(glucose),
fe30b226 46 new Play(glucose),
e28f168c 47 new Pong(glucose),
4c006f7b 48
0b1785e3
AG
49 // Alex G
50 new SineSphere(glucose),
51
4c006f7b
MS
52 // Shaheen
53 new HelixPattern(glucose).setEligible(false),
54
55 // Toby
a673599f 56 new GlitchPlasma(glucose),
254fbb68 57 new FireEffect(glucose).setEligible(false),
b4aaf4e4 58 new StripBounce(glucose),
254fbb68
MS
59 new SoundRain(glucose).setEligible(false),
60 new SoundSpikes(glucose).setEligible(false),
821ceae9 61 new FaceSync(glucose),
b6641090
MS
62
63 // Jack
64 new Swim(glucose),
8185ec8f 65 new Balance(glucose),
b6641090 66
8185ec8f 67 // Tim
b6641090
MS
68 new TimPlanes(glucose),
69 new TimPinwheels(glucose),
70 new TimRaindrops(glucose),
71 new TimCubes(glucose),
72 // new TimTrace(glucose),
73 new TimSpheres(glucose),
74
75 // Ben
51227786 76 // new Sandbox(glucose),
467c8c60 77 new TowerParams(glucose),
b6641090
MS
78 new DriveableCrossSections(glucose),
79 new GranimTestPattern2(glucose),
51227786
MS
80
81 //JR
a7c8d80a 82 new Gimbal(glucose),
51227786 83
b6641090
MS
84 // Sam
85 new JazzRainbow(glucose),
80785186 86
0208d845
AB
87 // Arjun
88 new TelevisionStatic(glucose),
89 new AbstractPainting(glucose),
90 new Spirality(glucose),
a7c8d80a 91
254d34c0 92 // Basic test patterns for reference, not art
bfff6bc2 93 new TestCubePattern(glucose),
186bc4d3 94 new TestTowerPattern(glucose),
0ba6ac44 95 new TestProjectionPattern(glucose),
254fbb68 96 new TestStripPattern(glucose),
1d75c8a9
MS
97 new TestBassMapping(glucose),
98 new TestFloorMapping(glucose),
99 new TestSpeakerMapping(glucose),
186bc4d3
MS
100 // new TestHuePattern(glucose),
101 // new TestXPattern(glucose),
102 // new TestYPattern(glucose),
103 // new TestZPattern(glucose),
f3f5a876 104
49815cc0
MS
105 };
106}
107
108LXTransition[] transitions(GLucose glucose) {
109 return new LXTransition[] {
3f8be614 110 new DissolveTransition(lx),
fe30b226
MS
111 new MultiplyTransition(glucose),
112 new ScreenTransition(glucose),
113 new BurnTransition(glucose),
114 new DodgeTransition(glucose),
115 new OverlayTransition(glucose),
116 new AddTransition(glucose),
117 new SubtractTransition(glucose),
118 new SoftLightTransition(glucose),
49815cc0 119 new SwipeTransition(glucose),
3f8be614 120 new FadeTransition(lx),
49815cc0
MS
121 };
122}
123
75e1ddde 124// Handles to globally triggerable effects
3661fcee 125BoomEffect EFF_boom;
126FlashEffect EFF_flash;
75e1ddde 127
49815cc0
MS
128LXEffect[] effects(GLucose glucose) {
129 return new LXEffect[] {
3661fcee 130 EFF_flash = new FlashEffect(lx),
131 EFF_boom = new BoomEffect(glucose),
348fed66 132 new BlurEffect(glucose),
fe30b226 133 new DesaturationEffect(lx),
d626bc9b 134 new ColorFuckerEffect(glucose),
49815cc0
MS
135 };
136}