12/24/2023 0 Comments Greenfoot source codeYour chosen development tool is as impenetrable as the language it’s supposed to help you with. You choose one, download and install it, and in a very short time you realize that you now have two things to learn: Java and the IDE. Several popular, free Java IDEs are available: Eclipse, NetBeans, and the community edition of IntelliJ, for example. A single application in which you can edit, build, run, debug, and deploy your soon-to-be-written Java application. Ok, first things first: You need one of those integrated development environments (IDEs) you’ve read about. But, you take a deep breath and resolve to give it a go. It might even seem impenetrable if you’re a new programmer. Please be patient with me, if I watch some of these videos, I am sure I can make a fun game - atleast for myself.You say you want to learn Java. This should save us A LOT of time because before this, I was reading other peoples codes and learning that way. They have these video tutorials on the website, (I did not notice until recently) which I will be going through and trying out at home starting this week since I am unable to watch them in school. Any ideas what what I should create or would you like to see just a whole bunch of stuff compresesd into one scenario? Post below please. The games, however, are very complex, but share many of the same ideas that we have already learned. One thing I thought would be fun, is to recreate one of the games on the greenfoot website that does not share the source code. The problem is, many of these games have been made already, so we are not sure what to make, we'd just be copying or rewriting the code. Using Greenfoot, I want to create a game to try out some of the things I've learned so far, such as movement, "eating", solid objects. 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 |