Home Jensen Archive jWiki Jensen News Jensen Cloud Jensen Programming Jensen Family Tree JensenDiary
A program that recrates a 4 sides war shooting and reclaiming land. To use it you have to press the keys Q, P, Z & M. However, it only supports one key at a time. It is based on Carson Jay Marbles's "Multiply or Release #2 - Algodoo Marble Race" video.
int W = 50; Land[][] territory; ArrayListcurrentBalls = new ArrayList (); Shooter s1,s2,s3,s4; void setup() { size(800,800); territory = new Land[W][W]; float landWidth = ((width-1)*1f) / W; for (int i = 0; i < W; i++) { for (int j = 0; j < W; j++) { territory[i][j] = new Land(landWidth * i,landWidth * j,landWidth); } } ...
If you have a problem with this code, you can contact me at gerardjensenolmo@gmail.com