boolean for sun-dl or local use

This commit is contained in:
2019-01-04 10:12:38 +01:00
parent ad8ae6d5b0
commit 6cf76660f8

View File

@@ -1,7 +1,8 @@
Citizen mensch;
//debug settings
boolean smallerImage = true;
boolean b_smallerImage = true; //use a cropped, smaller version of the 1920x1080 image for faster development
boolean b_loadSun = false; //load sun from web-api instead of local json file (local file is adressed to january 4th 2019. might implement a check that downloads today's information only once...
void mouseClicked(){
mensch.goTo(73);
@@ -17,6 +18,8 @@ class Citizen{
// identität: gelbhemd, lokal, regional, national, international, fremd,
//names of pathfinding algorithms: greedy best first search, uniform cost search, a star search
Citizen(int home){
i_home = home;
i_diameter = 15;
@@ -49,7 +52,7 @@ void setup() {
fill(0);
//ft = new SimpleDateFormat ("HH:mm:ss");
if(smallerImage) img_houses = loadImage(dataPath("map/houses_with_borders_small.png"));
if(b_smallerImage) img_houses = loadImage(dataPath("map/houses_with_borders_small.png"));
else img_houses = loadImage(dataPath("map/houses_with_borders.png"));
img_streets = loadImage(dataPath("map/streets.png"));
@@ -60,6 +63,8 @@ void setup() {
surface.setSize(img_houses.width, img_houses.height);
initWeather();
mensch = new Citizen(112);
mensch.spawn(112);