Last day for any makeup work is TODAY!!!! Check your Grades
Section 3.1-3.5 Quiz - show me your score once you complete the quiz.
Note: Any current work shown on this page today (section 5) can still be turned in Monday but NOT makeup work, the deadline for that is today. If you have any sections partially completed show me your work for partial credit. If you have vocabulary but show that to me.
For the final be sure you are able to:
Create and size a world
Create and program Actor subclasses
Program actors to move, turn and change direction when they get to the edge of the world.
Program keyboard controls for actors
Save the world
Java API - to find out about any Java classes and methods check the Java API.
By popular demand - How to remove objects from the world
If the following is placed in the Crab act method then when the crabs reach the edge of the world they are REMOVED!
if (atWorldEdge())
getWorld().removeObject(this);
Adding Keyboard Controls
How to see what your variables are doing
System.out.println("counter number = " + count);
Section 3: Lesson 5 -
Randomization and Constructors vocabulary:
- A technique that allows a class to use a method from another class or object. The dot between the class/object name and the method name indicates that the method comes from a different class or object.
-
A special kind of method that is automatically executed whenever a new instance of the class is created.
-
A keyword that indicates that a new object is being created.
-
Symbols that compare two random values in a method.
Complete Section 3: Lesson 5 -
Randomization and Constructors slides.
Complete Section 3: Lesson 5 -
Randomization and Constructors practice and project.
For step 19 check the Greenfoot class API to find the code for the key press check.
You can also type Greenfoot. and then press Ctrl + space and it will
pop up a code completion box
Show these to your instructor for teacher check.
Section 3: Lesson 6 -
Defining Methods vocabulary:
- A new method that a class didn't already possess; these methods are written in the class's source code below the act() method.
Complete Section 3: Lesson 6 -
Defining Methods slides.
Complete Section 3: Lesson 6 -
Defining Methods practice and project.
Show these to your instructor for teacher check.