peaceklion.blogg.se

Greenfoot download
Greenfoot download










Move your Wombat picture in to the world by clicking anywhere in the world.ġ.1 TRY THIS! Make a bunch of Wombats and leaves and bring them in to the world.ĭoing stuff with Objects ( invoking a method) Right click on the Wombat class and then the class menu will pop up.Ĭhoose the option at the top of that menu, new Wombat(), and it will make new Wombat objects. When we have a class in Greenfoot, we can create objects from it.You can call an object an instance if you want, in programming they just mean the same thing. Think of it this way, if you had a class called transportation it would include a lot of stuff like trains, planes, boats, roller skates, skateboards, bicycles, cars, trucks…… But if you had a class called skateboards it would have long boards and short skateboards and mini-skateboards, but it would not have any monster trucks in it. For example, class Wombats stands for all Wombats. A class means something that stands for all of the things that belong to it. Since Java is an object-orientated language, it uses objects and classes. They are World, WombatWorld, Actor, Leaf, and Wombat. The three parts are: the World: where the programs will run, and you can see stuff happen, the class diagram: this is where the world and actor classes are, the execution controls: Act, Run, Reset and the speed slider. To see this, start up Greenfoot and click on Scenario in the top left, then choose open and navigate to the leaves-and wombats scenario. Scenarios are programs that do something. The Greenfoot interface is what we see when we create a scenario or load a scenario in to Greenfoot. Greenfoot: an interactive Java environment. Topics: What we are going to talk about: Greenfoot, the Greenfoot interface, doing stuff with objects (interacting), invoking methods, running a scenarioĬoncepts: (ideas you should know at the end of the lesson) object, class, method call, parameter, return value Here is the first thing to do: Go to teams and get this view:Īnd then you right click on the file and choose download.

#Greenfoot download zip file#

Then you have to go to the class materials part of the team and download the zip file there called Asteroids and wombats1.zip.

greenfoot download

The reason you should answer the questions and make notes, is that you will be able to remember it better.įirst you will need to download greenfoot. Answer the questions in point form, screencap your results and code.

greenfoot download

This is not required work, you can do it if you want more experience coding.įor yourself, I suggest that you make a word doc, define in your own words everything in bold.










Greenfoot download