Skip to main content

Your task is to create a game in Greenfoot, with three types of elements: a PLAYER object, controlled by the player; FOOD objects that can be ‘caught’ by the player; and ENEMY objects, that can ‘catch’ the player. If the enemy catches the player, then the game is over.

Overview:
Your task is to create a game in Greenfoot, with three types of elements: a PLAYER object, controlled by the player; FOOD objects that can be ‘caught’ by the player; and ENEMY objects, that can ‘catch’ the player. If the enemy catches the player, then the game is over.
You must create a new scenario and you must choose a theme for your game that is not crabs/worms and lobsters. All your elements should suit your theme, including the background and the actors. The movement of the actors should ‘make sense’ as per the theme of your game. We do not expect to see the same theme or game created by any two students – be original!
Details:
Player:
· You will create a Player class.
· At the beginning of the game, there must be one PLAYER object on the screen.
· The PLAYER must be controlled by the keyboard, and at minimum must move automatically and have left and right turn. For example, when the left arrow key on the keyboard is pressed, the PLAYER will turn to the left while moving forwards. When the right arrow key is pressed, the PLAYER will turn to the right while moving forward.
Food
· You will create one Food class.
· There must be eight FOOD objects on the screen at the beginning of the game.
· Each FOOD object must have random movement on the screen – that is, it must turn in random directions and move at a random speed. The food must be able to be caught by the PLAYER.
· When the FOOD is caught by the PLAYER, it should be removed from the screen.
· Later in the Portfolio, you will use the Food class to create different types of Food objects so you will need to think about the theme for your food carefully.

Enemy:
· You will create an Enemy class.
· There must be at least one ENEMY object on screen at the beginning of the game.
· Each ENEMY must at minimum, move at a constant speed and turn in random directions and should be different than the food (cannot use the exact same code).
· If the ENEMY catches the player, the game should end. Sound:
· You should include sound effects that fit the theme of your game. These can be either in¬built or created by you. At least one sound should be created/recorded by you in Greenfoot.
· You should include sound for when the PLAYER is caught by the ENEMY.
· You should include sound for when the PLAYER catches or eats a FOOD.
· You should include sound for when the PLAYER wins the game.
Additional Details:
You can choose to use the inbuilt media for backgrounds and actors OR you can choose to add your own (see Module 4 for how to do this), or some combination of the two. If you do add your own, make sure you use PNGs with transparency for your actors, and keep your file size small.
General criteria: playability, accuracy, careful coding, maintainability of the code, commenting, choice of names for classes, methods (and variables if necessary).
Enhancements for extra credit:
You may like to add the following features, for extra credit:
· Use alternate keys to move the player “up”, “down”, “left” and “right”.
· Add animation when the PLAYER is moving.
· Add animation when the FOOD is moving.
· Add animation when the ENEMY is moving.
· Use your own images or images sourced from the internet. These must be referenced in your documentation and commented in your code.
· Use your own sounds or sounds sourced from the internet. These must be referenced in your documentation and commented in your code.
· Add a score which displays how many FOOD pieces they have caught.

Submission:
You must export your game as both:
· a JAR file (application); and
· a Greenfoot archive (gfar) file. Please name your file appropriately (see below):
e.g. yourSCUusername_Ass2.jar and yourSCUusername _Ass2.gfar and yourUsername_Enhancements.doc
If you do not submit in the above format, your assignment will not be marked. Submit both of these to MySCU site under the “Assignment 2” link. Make sure you Submit (not just Save) by the due date. Your tutor will contact you if they have any questions about your submission.
Getting Help
Who can you get help from? Use this diagram to determine from whom you may seek help with your program.
Lecturer Tutors Online
Forums Relatives

Students outside unit Hired
coders Classmates Private Tutors
Other
Encouraged Attribution Required Ask tutor Not acceptable
This assignment, which is to be completed individually, is your chance to gain an understanding of the fundamental concepts of object-oriented programming and coding syntax on which later
learning will be based. It is important that you master these concepts yourself.
Since you are mastering fundamental skills, you are permitted to work from the examples in the study guide or textbook, but you must acknowledge assistance from other textbooks or classmates. In particular, you must not use online material or help from others, as this would prevent you from mastering these concepts

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...

Discuss how the project

ord count : no idea 1. You are required to write a report on all project activities involved in all the 10 knowledge areas of project management for the entire project life cycle. You should also include a list of the respective PM documents, for example PM Plan, PM Quality Management Plan, Risk management, Procurement, etc. The report must include the activities that are considered before the project is closed out. 2. Discuss how the project quality management plan can provide adequate standards and controls in managing global teams in projects. Your discussion must provide adequate arguments for the need of cultural awareness and legal issues. Regards, The post Discuss how the project appeared first on My Assignment Tutor . Assignment status :  Resolved by our Writing Team Source@ PrimeWritersBay.com GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS   CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com NO PLAGIARISM