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

erdelf's Comments

Back to erdelf's profile

we wrote at the same time ...
@lonely.girl, I dont know if you read what I wrote but I uploaded an update, try it with this one
yeah, I forgot a bug, download the latest update here
just download the update, I changed the code so it is calling the move method from the world
put this in the world class: public void act() { for(int i = 0; i < 100; i++) { stars[i].move(); } } and remove the move(); line in the star class in the act method
addObject(stars[i], Greenfoot.getRandomNumber(getWidth()), getHeight()/2); this command is three times in the world class. you have to change the getHeight()/2 to Greenfoot.getRandomNumber(getHeight())
if you want, you can send me levels for this scenario, in the code you can see how I made them
interesting background music, I would prefer the title "this is halloween"
I just found one method to do this, but it slows the game a bit down. add this to the UpdateImage method before the return List explodeEm = getWorld().getObjects(Flame.class); Iterator i = explodeEm.iterator(); while(i.hasNext()) { Flame a = (Flame) i.next(); G2D_Graphic.drawImage(BI_GI_Light,null,a.getX()-GI_Light.getWidth()/2,a.getY()-GI_Light.getHeight()/2); }