oreodo.blogg.se

Greenfoot lessons
Greenfoot lessons














Created by NW 2012 – please note all copyright on images used is property of copyright holder. The blog makes for interesting reading, and provides valuable lessons for many teachers out there. This means that in order to write programs we don’t use English – in this instance we use a language called JAVA. Greenfoot Live will be a regular chat event where members of the Greenfoot team will be live online and talk about Greenfoot, among ourselves and with you the users of Greenfoot. The only steps a computer really understands are steps that are very small and exact.

greenfoot lessons

When you tell a computer to do something you also have to break it down into steps that it can understand. Moving an Actor There are two ways of moving an actor, the easy way requires you to be rotated in the correct direction first, then move( cells ) Will move the actor the amount of cells specified in the direction they are facing. You must create a method called addedToWorld (). Computers do exactly what you tell them to do, nothing more, nothing less (its not the computers fault you keep dying / losing / crashing, its you!). Where angle is the clockwise angle to rotate the object, remember in Greenfoot the 0° angle is pointing right. Greenfoot tutorials Movement Tutorial II If you want to move an object in Greenfoot when it is intitialized you cannot do so directly in the constructor. The instructions you give to them have to be very precise. From your Greenfoot lessons, which one of the following is an example of when an abstraction technique is used Mark for Review (1) Points Adding a property to an instance Initialising a variable Adding a property to a Class Passing a paramater in a constructor to set an initial speed.

greenfoot lessons

A computer has little capacity to interpret things – it has to be told directly.

greenfoot lessons

Created by NW 2012 please note all copyright on images used is property of copyright holder. Java with Greenfoot Lesson 2: Tic-Tac-Toe Game Part I Jby Jessica Chiang In this lesson, we will create a Tic-Tac-Toe game board and add game pieces to it.

#Greenfoot lessons how to

Understand how to detect Actors and create methods. One of the first differences you have to understand between giving a set of instructions for a person and one for the computer, is that the computer is an empty box that does nothing w/o programs or instructions. Be able to apply learning to programming Greenfoot.














Greenfoot lessons