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

tylers's Comments

Back to tylers's profile

tsimmonds278@gmail.com
and String answer; URL url = new URL(to); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET"); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream())); String line; for(answer = ""; (line = reader.readLine()) != null; answer = (new StringBuilder()).append(answer).append(line).toString()) { } return answer; IOException e; e; e.printStackTrace(); return "error";
it is done like this: public void act() { String name = UserManager.name(UserManager.get((new StringBuilder()).append("http://www.greenfoot.org/users/").append(index++).toString())); if(name.isEmpty()) { text.setTxt((new StringBuilder()).append("user ").append(index).append(": doesn't exist.").toString()); return; } GreenfootImage img = GreenfootUtil.getUserImage(name); if(img == null) { text.setTxt((new StringBuilder()).append("user ").append(index).append(" ").append(name).append(": no image found.").toString()); return; } Color first = img.getColorAt(0, 0); if(first.getRGB() == 0xffd4d4d4) { text.setTxt((new StringBuilder()).append("user ").append(index).append(" ").append(name).append(" has default image.").toString()); return; } else { addObject(new Face(img), (int)Math.round(Math.random() * 520D + 40D), (int)Math.round(Math.random() * 320D + 40D)); text.setTxt((new StringBuilder()).append("user ").append(index).append(" ").append(name).append(" added.").toString()); return; } }
at what point is that?
Its only been 4 hours since you uploaded, be patient, anyway the game is cool. I like the animation effects. :)
tylerstylers

2013/5/29

ok ;)
tylerstylers

2013/5/29

:D shall i remove the download link?
tylerstylers

2013/5/29

i knew it along time before that.
tylerstylers

2013/5/29

lol you post it as i was typing