|
|
@@ -24,14 +24,18 @@ void setup() { |
|
|
|
else img_houses = loadImage(dataPath("map/houses_with_borders.png")); |
|
|
|
|
|
|
|
img_streets = loadImage(dataPath("map/streets.png")); |
|
|
|
|
|
|
|
surface.setSize(img_houses.width, img_houses.height); |
|
|
|
|
|
|
|
initHouses(); |
|
|
|
initPathFinding(); |
|
|
|
initWeather(); |
|
|
|
initCitizen(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
surface.setSize(img_houses.width, img_houses.height); |
|
|
|
|
|
|
|
void initCitizen(){ |
|
|
|
|
|
|
|
|
|
|
|
//namen: ethuriel, nathaniel, loriel, samuel, aluriel, aleriel, thaliel, suriel, kaliel, |
|
|
|
|
|
|
@@ -49,11 +53,10 @@ void setup() { |
|
|
|
for (int i = 0; i < citizen.length; i++) { |
|
|
|
citizen[i].spawn(int(random(0, houses.size()))); |
|
|
|
} |
|
|
|
//citizen[2].spawn(59); |
|
|
|
//citizen[2].spawn(59); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void draw() { |
|
|
|
//background(255); |
|
|
|
background(img_houses); |