Skip to content

Instantly share code, notes, and snippets.

@nodepond
Last active September 1, 2019 18:08
Show Gist options
  • Select an option

  • Save nodepond/4263920bd72395ec27f53f9ffa8f8f77 to your computer and use it in GitHub Desktop.

Select an option

Save nodepond/4263920bd72395ec27f53f9ffa8f8f77 to your computer and use it in GitHub Desktop.
ProcessingJam-BelowZero: Template to build upon for live-coding challenge at PocketRoom. https://www.pocketroom.de
class Class1 {
Class1() {
}
void update() {
}
void show() {
}
}
class Class2 {
Class2() {
}
void update() {
}
void show() {
}
}
Class1[] class1 = new Class1[20];
Class2[] class2 = new Class2[20];
void setup() {
// fullScreen(0);
size(800, 600);
for (int i = 0; i < class1.length; i++) {
class1[i] = new Class1();
}
for (int i = 0; i < class2.length; i++) {
class2[i] = new Class2();
}
}
void draw() {
background(0);
for (int i = 0; i < class1.length; i++) {
class1[i].update();
class1[i].show();
}
for (int i = 0; i < class2.length; i++) {
class2[i].update();
class2[i].show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment