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

bourne's Comments

Back to bourne's profile

Ah I see XD I will look into it.
So do you mean to have the keys WASD to instead direct to the corners of the applet? Or do you mean to have some mechanic to be able to let go of say the D key in your example and still be moving as if it was still pressed? I honestly use the mouse almost always.
Alright thanks, I will change it. Got to dig through more code I wrote like 2 years ago ha.
Nice! XD
I got the following when I got to the stairs java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at EventScript.getIntCommand(EventScript.java:915) at EventScript.excecuteCommand(EventScript.java:617) at EventScript.act(EventScript.java:567) at greenfoot.core.Simulation.actActor(Simulation.java:507) at greenfoot.core.Simulation.runOneLoop(Simulation.java:470) at greenfoot.core.Simulation.runContent(Simulation.java:204) at greenfoot.core.Simulation.run(Simulation.java:194) Also It's possible to ride the elevator from the hallway. The text still sometimes doesn't fit on screen. But looking good!
Ah I thought I did, but there was another spot. Thanks!
Basically the fire effect consists of having a 2d array of values of "intensities", where you add 0 & max intensities at the "bottom", then loop through the rest, where at each point - finding the average of what's directly below it and subtracting 1, then setting that to that point. I have a few modifications to making the effect look nice. But then you take the 2d array and loop through each point and translate the intensity onto a color spectrum (white -> yellow -> red -> black), which then is the pixel at that point. The Spark class is used so to not just be adding randomly 0 or max intensities to the bottom of the array. Basically there is a list of Sparks that cover the length of the bottom of the array, where each have a "home" that it must stay "close" to, but allowed to move randomly around. Also each can randomly change its "length". So using the Spark class, it makes the flames seem to waver, making a nice fire replication.
Photo_on_2011-09-18_at_18bourne

2011/12/5

Nice! I like the rolling feel of the control of the ball. Some kind of upgrade/change in environment may be cool. Maybe a progression could lead to where the platforms didn't necessarily move upward and maybe some other forces could be "chasing" you which will destroy your ball if touches. Just ideas! Good work. Got to level 4, score: 2751 =)
Photo_on_2011-09-18_at_18bourne

2011/12/4

Thanks for the suggestion! I will be sure to implement the grass thing next. And I'm still unsure exactly what direction I want to take the game.