AsanaThankshackathon/VSTowers
[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 new SineSphere(glucose),
30 //new CubeCurl(glucose),
31
32 // Slee
33 // new Cathedrals(glucose),
34 new Swarm(glucose),
35 new MidiMusic(glucose),
36 new Pulley(glucose),
37
38 new ViolinWave(glucose),
39 new BouncyBalls(glucose),
40 new SpaceTime(glucose),
41 new ShiftingPlane(glucose),
42 new AskewPlanes(glucose),
43 new Blinders(glucose),
44 new CrossSections(glucose),
45 new Psychedelia(glucose),
46
47 new Traktor(glucose).setEligible(false),
48 new BassPod(glucose).setEligible(false),
49 new CubeEQ(glucose).setEligible(false),
50 new PianoKeyPattern(glucose).setEligible(false),
51
52 // DanH
53 new Noise(glucose),
54 new Play (glucose),
55 new Pong (glucose),
56 new Worms(glucose),
57
58 // Alex G
59
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
68
69
70 // Vincent
71 new VSTowers(glucose),
72
73 // Toby
74 new GlitchPlasma(glucose),
75 new FireEffect(glucose).setEligible(false),
76 new StripBounce(glucose),
77 new SoundRain(glucose).setEligible(false),
78 new SoundSpikes(glucose).setEligible(false),
79 new FaceSync(glucose),
80
81 // Jack
82 new Swim(glucose),
83 new Balance(glucose),
84
85
86 // Ben
87 // new Sandbox(glucose),
88 new TowerParams(glucose),
89 new DriveableCrossSections(glucose),
90 new GranimTestPattern2(glucose),
91
92 // Shaheen
93 //new HelixPattern(glucose).setEligible(false),
94
95 //JR
96 new Gimbal(glucose),
97
98 // Sam
99 new JazzRainbow(glucose),
100
101 // Arjun
102 new TelevisionStatic(glucose),
103 new AbstractPainting(glucose),
104 new Spirality(glucose),
105
106 // Basic test patterns for reference, not art
107 new TestCubePattern(glucose),
108 new TestTowerPattern(glucose),
109 new TestProjectionPattern(glucose),
110 new TestStripPattern(glucose),
111 new TestBassMapping(glucose),
112 new TestFloorMapping(glucose),
113 new TestSpeakerMapping(glucose),
114 // new TestHuePattern(glucose),
115 // new TestXPattern(glucose),
116 // new TestYPattern(glucose),
117 // new TestZPattern(glucose),
118
119 };
120 }
121
122 LXTransition[] transitions(GLucose glucose) {
123 return new LXTransition[] {
124 new DissolveTransition(lx),
125 new AddTransition(glucose),
126 new MultiplyTransition(glucose),
127 new OverlayTransition(glucose),
128 new DodgeTransition(glucose),
129 new SwipeTransition(glucose),
130 new FadeTransition(lx),
131 // new SubtractTransition(glucose), // similar to multiply - dh
132 // new BurnTransition(glucose), // similar to multiply - dh
133 // new ScreenTransition(glucose), // same as add -dh
134 // new SoftLightTransition(glucose), // same as overlay -dh
135 };
136 }
137
138 // Handles to globally triggerable effects
139 class Effects {
140 FlashEffect flash = new FlashEffect(lx);
141 BoomEffect boom = new BoomEffect(glucose);
142 BlurEffect blur = new BlurEffect(glucose);
143 QuantizeEffect quantize = new QuantizeEffect(glucose);
144 ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
145
146 Effects() {
147 blur.enable();
148 quantize.enable();
149 colorFucker.enable();
150 }
151 }
152