Browse Source

added ID to houses

master
Victor Giers 5 years ago
parent
commit
f1ecfeebf0
2 changed files with 6 additions and 7 deletions
  1. 4
    1
      Houses.pde
  2. 2
    6
      citizen.pde

+ 4
- 1
Houses.pde View File

@@ -34,9 +34,11 @@ class SpawnArea {
PVector v2_center;
int i_size;
int i_ID;
void display(){
text(i_size,v2_center.x,v2_center.y);
//text(i_size,v2_center.x,v2_center.y);
text(i_ID,v2_center.x,v2_center.y);
}
@@ -50,6 +52,7 @@ class SpawnArea {
}
SpawnArea(int startX, int startY) {
i_ID = spawnAreas.size();
int [] pxl = img_houses.pixels;
int pw = img_houses.width;
int ph = img_houses.height;

+ 2
- 6
citizen.pde View File

@@ -1,7 +1,5 @@
Citizen mensch;
PImage img_streets;
PGraphics pg_map;

boolean b_isRaining;


@@ -34,8 +32,6 @@ class Citizen{
}
}

Citizen mensch;

void setup() {
size(400, 300);
textAlign(CENTER);
@@ -57,7 +53,7 @@ void setup() {
void draw() {
background(255);
image(img_houses, 0, 0, img_houses.width, img_houses.height);
image(img_streets, 0, 0, img_houses.width, img_houses.height);
//image(img_streets, 0, 0, img_houses.width, img_houses.height);
textSize(7);
for (SpawnArea spawn : spawnAreas) {
spawn.display();

Loading…
Cancel
Save