if got a problem. I imported my exported code form processing into eclipse. So i´ve got one file with all my classes and code. I add the core.jar and so on... At first the programm starts perfect. But if i want to split my classes of the file in separeted classes in eclipse the images of the seperated classes doenst work.
I´ve added all the used images into the "src"-section.
If the variable lvl is = 2 println (line 14 - first codesnippet) appears and the result in the console is 2. But instead of running case 2 the case 1 is running.
Do i use the switch/case condition in a wrong way?
first i add some items around the canvas to the ArrayList with random X and random Y:
enemies.add(new cEnemies(random(width), random(0,500), 35, eL, eLbL));
But now i would like to add the items only around a rectangle in the middle of my canvas. So every where on the canvas items should by add, but the rectangle shouldn't contain items.