![]() However, we will continue to work on it at home. 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 |