Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 21st, 2013  |  syntax: Java  |  size: 0.40 KB  |  hits: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //ArrayList<Light> lights
  2. for (int y = 0; y < 50; y++) {
  3.             for (int x = 0; x < 53; x++) {
  4.                 for (int i = 0; i < lights.size(); i++) {
  5.                     Shape tmp = lights.get(i).getHitbox();
  6.                     if (tmp.contains(test[x][y])) {
  7.                         calculated_light_value[x][y] += 0.33f;
  8.                     }
  9.                 }
  10.             }
  11.         }