Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. public void setUp(int[] charTypes) {
  2.  
  3.         //Coloring Eskimos
  4.         for(int i = 0; i/2 < numberOfPlayers; i += 2) {
  5.         setup.get(i+6).setColor(1f, 0.6f, 0.6f, 1f); //Skin color
  6.         setup.get(i+7).setColor(0.65f, 0.15f, 0.15f, 1f); //Brown
  7.         }
  8.        
  9.         //Coloring Explorers
  10.         for(int i = 0; i/2 < numberOfPlayers; i += 2) {
  11.         setup.get(i+12).setColor(1f, 0.8f, 0.8f, 1f); //Lighter skin color
  12.         setup.get(i+13).setColor(1f, 0f ,0f, 1f); //Red
  13.         }
  14. }
  15.  
  16.             //Checking for choice of characters
  17.             if(contains(wcoord, setup.get(7), 6) && mousePressed)  {
  18.                 charTypes[0] = 1; //???
  19.                 mouse = null; }
  20.             else if(contains(wcoord, setup.get(13), 6) && mousePressed)  {
  21.                 charTypes[0] = 2; //???
  22.                 mouse = null; }
  23.             setUp(charTypes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement