Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ArrayList<Light> lights
- for (int y = 0; y < 50; y++) {
- for (int x = 0; x < 53; x++) {
- for (int i = 0; i < lights.size(); i++) {
- Shape tmp = lights.get(i).getHitbox();
- if (tmp.contains(test[x][y])) {
- calculated_light_value[x][y] += 0.33f;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement