Last active
September 1, 2019 18:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Class1 { | |
| Class1() { | |
| } | |
| void update() { | |
| } | |
| void show() { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Class2 { | |
| Class2() { | |
| } | |
| void update() { | |
| } | |
| void show() { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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