This site requires JavaScript, please enable it in your browser!
Greenfoot back

mik's Comments

Back to mik's profile

mikmik

2008/11/17

There are 16 boards at the moment. Maybe I should ad a mechanism that allows you to start at a later level once you've solved it before... As it is, maybe nobody has ever seen Board 14 (my favourite)...
mikmik

2008/11/13

I got the fuel in - now I'm waiting for the rocket to take off!
mikmik

2008/11/11

I got 94 twice now... Can't seem to get more, dammit!
mikmik

2008/11/11

No new ideas for killing off people, but I was wondering whether it would be made more interesting if you turned it around: people die quite easily, and you have to make them survive. That's because it's easy to kill people, but not easy to create them. You could have population decreasing factors come automatically (few children when there is overpopulation, occasional diseases breaking out, food shortages when there is over-population, food shortages because of natural disasters, etc.) The you can intervene by dropping vaccines in, or improving transport (people can move further to find mates more easily), or improving food generation, etc. All this could cost money, so you cannot do that arbitrarily often (your money could increase slowly relative to population -- tax -- and be used for your interventions).
mikmik

2008/11/11

Nice idea, but I get a "Game Over" just a few seconds into level 2, even though the balls have not gone out.
mikmik

2008/11/10

I get a bit more than a year per second (about 14 years every 10 seconds), but I think that speed is good.
Very impressive indeed! I was curious, so I had a look at the source code. One small tip: You can avoid creating a new GreenfootImage in every act cycle, by just reusing and painting over the previous one. That is, instead of GreenfootImage im = new GreenfootImage(width, height); do this: GreenfootImage im = getImage(); im.clear(); You can then also remove the 'setImage(im);' a bit further down, since you are painting directly on the object's image. This speeds up execution by almost 20% on my machine. Theoretically, you should also move the declaration of your maze array (int[] arr) out of the act method, and make it an instance field. This way, it does not get recreated every time. (In actual fact, this makes little difference because the Java VM optimises this very well and does the same by itself internally. But it's still the right thing to do.) And you can get rid of the setLocation(150, 150); in the act method if you just place it there once initially in the setup. Great stuff!
mikmik

2008/11/8

Great fun!
mikmik

2008/11/7

Good game. It would be nice to see a score at the end to see how many I've got (without having to count myself).