Add blank pattern to right deck, clean up bouncyballs
[SugarCubes.git] / SugarCubes.pde
1 /**
2 * +-+-+-+-+-+ +-+-+-+-+-+
3 * / /| |\ \
4 * / / + + \ \
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 */
25
26 LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
28
29 // Slee
30 new BouncyBalls(glucose),
31 new Swarm(glucose),
32 new SpaceTime(glucose),
33 new ShiftingPlane(glucose),
34 new AskewPlanes(glucose),
35 new Blinders(glucose),
36 new CrossSections(glucose),
37 new Psychedelia(glucose),
38
39 new Traktor(glucose).setEligible(false),
40 new BassPod(glucose).setEligible(false),
41 new CubeEQ(glucose).setEligible(false),
42 new PianoKeyPattern(glucose).setEligible(false),
43
44 // DanH
45 new Noise(glucose),
46 new Play(glucose),
47 new Pong(glucose),
48
49 // Alex G
50 new SineSphere(glucose),
51
52 // Shaheen
53 new HelixPattern(glucose).setEligible(false),
54
55 // Toby
56 new GlitchPlasma(glucose),
57 new FireEffect(glucose).setEligible(false),
58 new StripBounce(glucose),
59 new SoundRain(glucose).setEligible(false),
60 new SoundSpikes(glucose).setEligible(false),
61 new FaceSync(glucose),
62
63 // Jack
64 new Swim(glucose),
65 new Balance(glucose),
66
67 // Tim
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
76 // new Sandbox(glucose),
77 new TowerParams(glucose),
78 new DriveableCrossSections(glucose),
79 new GranimTestPattern2(glucose),
80
81 //JR
82 new Gimbal(glucose),
83
84 // Sam
85 new JazzRainbow(glucose),
86
87 // Arjun
88 new TelevisionStatic(glucose),
89 new AbstractPainting(glucose),
90 new Spirality(glucose),
91
92 // Basic test patterns for reference, not art
93 new TestCubePattern(glucose),
94 new TestTowerPattern(glucose),
95 new TestProjectionPattern(glucose),
96 new TestStripPattern(glucose),
97 new TestBassMapping(glucose),
98 new TestFloorMapping(glucose),
99 new TestSpeakerMapping(glucose),
100 // new TestHuePattern(glucose),
101 // new TestXPattern(glucose),
102 // new TestYPattern(glucose),
103 // new TestZPattern(glucose),
104
105 };
106 }
107
108 LXTransition[] transitions(GLucose glucose) {
109 return new LXTransition[] {
110 new DissolveTransition(lx),
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),
119 new SwipeTransition(glucose),
120 new FadeTransition(lx),
121 };
122 }
123
124 // Handles to globally triggerable effects
125 BoomEffect EFF_boom;
126 FlashEffect EFF_flash;
127
128 LXEffect[] effects(GLucose glucose) {
129 return new LXEffect[] {
130 EFF_flash = new FlashEffect(lx),
131 EFF_boom = new BoomEffect(glucose),
132 new BlurEffect(glucose),
133 new DesaturationEffect(lx),
134 new ColorFuckerEffect(glucose),
135 };
136 }