In Greenfoot, we typically use the act method in the class to automatically create the Actor instances when the world is initialized. In Greenfoot, which class has methods that allow you to get the status of the mouse? Mark for Reviewġ3. You can only use the sounds that are stored in the Greenfoot library. You cannot record unique sounds in Greenfoot. In Greenfoot, the sound file must be saved in the scenario and written in the source code for it to play. When the end to the act method isn't established.ġ0. When the end to the code isn't established. From your Greenfoot lessons, when do infinite loops occur? Mark for Review Instead of entering ".png" after each image file name, add = ".png" after the imageName value in the programming statement.ĩ. Instead of entering ".png" after each image file name, add + ".png" after the imageName value in the programming statement. Instead of entering ".png" after each image file name, add & ".png" after the imageName value in the programming statement. Instead of entering ".png" after each image file name, add ".png" after the imageName value in the programming statement. Which of the following is an example of string concatenation? Mark for Review In Greenfoot, a local variable is declared at the beginning of a class. In Greenfoot you can only access the methods of the current class? Mark for Review Use your Greenfoot knowldege: Abstraction occurs in many different ways in programming. In Greenfoot modifying an actors constructor to accept an initial speed is a form of abstraction? Mark for Reviewĥ. Defined methods are methods that are only created by the Greenfoot development team? Mark for ReviewĤ. To execute a method in your Greenfoot game, where is it called from? Mark for Review In Greenfoot a collision is when 2 actors touch? Mark for ReviewĢ. However, we will continue to work on it at home.1. Therefore, we will not be able to make it to the career center the entire week. That means that we will have SOL's in the morning and then classes in the afternoon. This week will be SOL week for us in school. I don't know what that is, so I will have to play a few before I know what he's talking about. Shyam thought that we should create a frogger game. We think that we can simply modify the eatleaf thing that was given to us in the wombat class in order to achieve this goal. What I currently don't understand is how to do contact with one class with another. We need to create an enemy that we can shoot down. You can also then place a new image of where the object disappeared to make it seem like you shot something. To make it disappear, you just have to use. The move() will have to be inside the class thats supposed to be the bullet or whatever you're shooting. To make it seem like its shooting from a certain object, you just need to get the location of that object and create the object there or near it, and then make it move using the move(//put a double here). Basically all you do is make an object appear on the grid and make it move. Using move() along with mouseinfo, you can use your mouse to move instead of using arrow keys which he had previously used. You can also make things follow the mouse. For instance, you can get the mouse x and y coordinates of where you clicked or last click. Now if you store this in a int, you can do all sorts of things. To get information on a mouse click, you use Greenfoot.getMouseInfo().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |