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

Super_Hippo's Comments

Back to Super_Hippo's profile

Oh great, it works now. (At least for me using Edge.)
Oh, I just noticed I also added a different error to the scoreboard in yesterday's update.
Despite the fact that the Highscore table isn't really readable when using Edge. But that problem exists with every size. Maybe I have to manually create the image and give it a Font instead of using the GreenfootImage(String, int, Color, Color) constructor to create the image automatically. Maybe that causes the browser to use a default Font. (Just guessing.)
Oh nice, it works! Thank you :)
The window size is apparently fixed and does not update when the next world has a different size. You can download it to play in a different size at least. @davmac: Any chance that the window size here on the site could update every time Greenfoot.setWorld is called?
I just noticed that I copied the Highscore table which shows the best three results instead of only the best one from my other scenario without changing how the scores are saved, so only the best one is showing. Doesn't matter too much since it doesn't run online anyway I guess...
The GIFImage class which is used handles animated GIFs. There shouldn't be a need to split it. The images are probably too big.
I think it is a two player game. Player A creates a new pattern and memorizes it. Player B clicks on one square while Player A is not watching. The square's color inverts. Player A then tries to find out which square was changed and clicks it.
I am not exactly sure what causes it, but you are making it harder than it is. If your Body/Head extend Snake, you should not have fields with the same name as in the Snake class. How I just made it work: Remove all "direction" variables, the "go" and "calcV" methods, simply turn the actor in the direction it should move and move it with the move method. Then when adding a new body part, you can add it to the world with the same rotation as the last one and move it back one cell. Save the "prevdir" at the beginning of the act method of Body/Head.