pgraph map, drag and drop, set mouse input to ui

This commit is contained in:
2019-01-14 20:40:20 +01:00
parent 99eb89f554
commit 1d16b1f2b5
3 changed files with 9 additions and 10 deletions

View File

@@ -147,11 +147,5 @@ class Citizen {
} else {
if (b_randomRun) goTo(int(random(0, width)), int(random(0, height)));
}
//else {
//println("bloop");
// goTo(int(random(0,width)),int(random(0,height)));
//b_moving = false; //this might be problematic if i want movement controlled by different things than goto / nodes
//}
//exploredEdges = pathFinder.getExaminedEdges();
}
}

View File

@@ -7,6 +7,8 @@ int i_biggestHouseSize;
ArrayList<House> houses = new ArrayList<House>();
void initHouses() {
img_houses.loadPixels();
for (int x = 0; x < img_houses.width; x++) {

View File

@@ -25,12 +25,16 @@ void setup() {
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,
@@ -53,7 +57,6 @@ void setup() {
}
void draw() {
//background(255);
background(img_houses);