Revisão 18
Future Places RC
| Lightminion.pde | ||
|---|---|---|
| 30 | 30 |
|
| 31 | 31 |
this.lighted = new ArrayList (); |
| 32 | 32 |
|
| 33 |
for(int y = 0; y < this.detector.height; y += 5)
|
|
| 33 |
for(int y = 0; y < this.detector.height; y += 10)
|
|
| 34 | 34 |
{
|
| 35 |
for(int x = 0; x < this.detector.width; x += 5)
|
|
| 35 |
for(int x = 0; x < this.detector.width; x += 10)
|
|
| 36 | 36 |
{
|
| 37 | 37 |
float av = (red(img[y*this.detector.width+x])+green(img[y*this.detector.width+x])+blue(img[y*this.detector.width+x]))/3.0; |
| 38 | 38 |
|
| ... | ... | |
| 55 | 55 |
|
| 56 | 56 |
this.lighted.add (l); |
| 57 | 57 |
|
| 58 |
ellipse (l[0], l[1], 10, 10);
|
|
| 59 |
// ellipse (l[0], l[1], this.lightlord.level.battlefield.cell_width, this.lightlord.level.battlefield.cell_height);
|
|
| 58 |
ellipse (l[0], l[1], 50, 50);
|
|
| 59 |
//ellipse (l[0], l[1], this.lightlord.level.battlefield.videoScale, this.lightlord.level.battlefield.videoScale);
|
|
| 60 | 60 |
// point (x, y, 0); |
| 61 | 61 |
} |
| 62 | 62 |
} |
Também disponível em: Unified diff