![]() ![]() You should just use the class, at this stage you are not responsible for reproducing your own GoalMover type class. This is a utility class that you can use to do that. One thing you may want to program your villains to do it move towards a goal. ![]() You can define your own hero using some of these features but yours must keep track of its score so that you can update it on your ScoreBoard. This is my human player, a space ship that is controlled by both the keyboard and the mouse. Then subclass your weapons from this Projectile class. Start by defining a class called Projectile that is based on my Laser. Feel free to use my class as a start but since you are creating more than one you should build a hierarchy to reuse your code. You will have to create two different weapons (or more) that can be fired with different keys. This is a Laser but could be any kind of projectile you like. ScoreBoard – java source code (template to start).You do however have to make a scoreboard in your game to keep track of how many points a player has accumulated. You do not need to create your own Label class, please use mine. This is a utility that you may find useful. If you want to work with a partner, you could each make a level with different enemies and targets to gather. You must also include sound effects in your final code. You could do your scenario in the Ocean with Sharks and Dolphins, or in the Forest with Bears, Hunters, and Fish, … it does not have to be set in outer space. In my scenario the human player collects satellites and the game is over after 10 are found. The final requirement is to have a goal for the human player, one which it can complete in order to complete the game or move on to the next level. The danger it poses is by spawning UFOs that can attack you. You must also have a villain that poses some danger to you. The requirements for the project are described below but the overall game you create should have a human player that is controlled by the keyboard and/or mouse. To make your first game in Greenfoot you will create a game similar to the one I will walk you through in the series of videos below. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |