Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Exercises 1-6 have helped you to get to know the different game elements and how they integrate with the game, with the game map and with each other

Exercises 1-6 have helped you to get to know the different game elements and how they integrate with the game, with the game map and with each other

Computer Science

Exercises 1-6 have helped you to get to know the different game elements and how they integrate with the game, with the game map and with each other. From here on out, you can make the game your own, and only creativity sets the limits of what you can do.

 

Note that Carrot, Rabbit and Spider are in a package of objects. These are examples of game objects, and not a "decision" on how the game should be.

 

You must make sure that the expansion of the game does not destroy existing code, that is, you must make the tests pass even if you change the game.

 

Expand the game with a functionality. Do it as follows:

 

Write a small plan for the expansion in Svar.md

Create the classes you need and create some JUnit tests for your plan

Complete the implementation. Make sure you have neat comments and good names on classes / methods / variables.

Write briefly about the performance in Svar.md.

It's just nice if you add more functionalities / extensions. Be sure to include what you have done in Svar.md so that the person who corrects notices it and can give points for it. But there is a limit to how many points you can get for this task so you don't have to do very much.

 

We want to see new functionality, so think about what you can achieve, it is not the number of code lines that determines the score on this task. Creativity is rewarded.

 

Do you need some start-up help? Here are some examples of some extensions you can have (but don't let these put limits on what you can do):

 

Add a new type of IActor with completely different behaviors than the existing ones. How does this role interact with other roles and things on the map?

Extend Rabbit to be able to mate if it is next to another Rabbit, a bit like Game Of Life. These should be some criteria for this to happen to avoid covering the entire map with rabbits.

Add new IItem that the player (and possibly others) can pick up to get better, e.g. sword increases attack and damage, armor increases defense, etc.

Check out Emoji support by looking at the EmojiFactory class

Check out level1.txt in the map.maps package, and create one or more new maps here. You use the map by changing the string maps / level1.txt in the Game constructor. (New map alone does not pay off, but can be fun to do with something else).

Playing with the arrow keys is an old-fashioned solution. Most computer games today support WASD (W: North, A: West, S: South, D: East), so maybe we can support both? and something easier than using 'P' and 'D'? (Note remember to change tests as well.)

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions