This only shows the Javadoc comments inside the Greenfoot editor. For this step it is recommended that they first view the class in the documentation mode. Later, the students may choose to find out how the methods were implemented in Kara itself. Thus, the complexity of Kara's methods are hidden from the students at first. But programming is always done in the class MyKara which, through inheritance, can accessed all the methods of Kara. The class Kara includes all the functionality of the ladybug Kara as seen above. The most important classes are Kara and MyKara. In Chapter 5, Kara has a few additional methods to show messages and to ask the user for input. In Chapter 4, Kara has a additional methods so that a Sokoban game can be programmed. The possibilities of Kara remain the same for all exercises, except for chapter 4 and 5. In each scenario, the world of Kara (with trees, leafs, etc.), is already prepared for each exercise. Run the setup program and follow the installation instructions.Īfter installation, any Kara-Scenario may be opened using the eenfoot file in the scenario folder.įor each exercise there is a separate scenario (see folder scenarios-chapter-1, scenarios-schapter-1-solutions, etc.). To use the Kara-Scenario Greenfoot must be installed first. Option 3: Start GUI-programming with JavaFX.Option 2: Start using a professional development environment like Eclipse, Netbeans, etc.Option 1: Develop a custom project with Greenfoot.3 lessons: Writing own methods with parameters and return values, repetition (chapter 5). 3-4 lessons: Programming a game, keyboard input, comparing Strings, reading Javadoc, designing ASCII levels, publishing the program on the Greenfoot website (chapter 4).3-4 lessons: Variables, data types and operators, the structure of a class, nested statements (chapter 3).3-4 lessons: flow diagram, control structures (conditions and loops), boolean and logic operators (chapter 2).3 lessons: Getting to know Kara, creating objects and calling methods with the mouse, reading source code, writing the first program (chapter 1).1 lesson: Installing Greenfoot, starting Greenfoot projects.When used in schools, the entire GreenfootKara material will take about 16-20 lessons. This might be especially helpful if you are a teacher. In this article you will find background information on how to work with GreenfootKara.
0 Comments
Leave a Reply. |