Create a game in Greenfoot

Assignment Help Programming Languages
Reference no: EM132356110

Programming Assignment -

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

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: At the beginning of the game, there must be one PLAYER piece on the screen. The PLAYER must be controlled by the keyboard arrows, and at minimum must have left and right movement. That is, when the left arrow key on the keyboard is pressed, the PLAYER will move to the left. When the right arrow key is pressed, the PLAYER will move to the right. There must be at least 10 FOOD pieces on the screen at the beginning of the game. Each FOOD piece must have random movement on the screen - that is, it must turn and move randomly, and must be able to be caught by the PLAYER. When the FOOD is caught by the PLAYER, it should be removed from the screen.

There must be at least one ENEMY on screen at the beginning of the game. Each ENEMY must have random movement on screen which is different than the food (cannot use the exact same code). If the ENEMY catches the player, the game should end.

You should include sound effects that will fit the theme of your game. These can be either in-built or created by you.

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 filesize small.

Additions: You may like to add the following features, for extra credit:

  • Add turning left (letter "A" on keyboard) and turning right (letter "D" on keyboard) to the PLAYER piece;
  • Add move up (up arrow on keyboard) and move down (down arrow on keyboard) to the PLAYER piece;
  • Add animation when the PLAYER is moving;
  • Add animation when the FOOD is moving;
  • Add animation when the ENEMY is moving;
  • You can also add your own enhancements, but if you do, you must include a text file in your submission, that explains those enhancements.

Attachment:- Programming Assignment File.rar

Reference no: EM132356110

Questions Cloud

Should the business be of the singular mind : Should the business be of the singular mind that making a profit is the goal, or do businesses have an ethical obligation to "give back" in some way
Calculate and print out the percentage of trips : Create a new column isPeak that indicates whether a trip was both started i.e. the meter was engaged and completed Calculate and print out percentage of trips.
What are the stages of corporation life cycle : What are the stages of a corporation's life cycle? How can a corporation's life cycle be extended? What stage is your company in?
Evaluation of 5g network and the security : MN603 - Wireless Networks and Security - Compare standards-based technologies used in various networks and Test and evaluate various wireless networks
Create a game in Greenfoot : CSC71001 Programming Assignment, Southern Cross University, Australia. Create a game in Greenfoot, with three types of elements
Fields of theory and research from organizational behavior : Identify and define the areas of your study and the fields of theory and research from Organizational Behavior that make up the background of this area.
What normal developmental skill was disrupted : In addition, you will discuss: what normal developmental skill was disrupted by the neurodevelopmental disorder. what impact the disorder has on daily living.
Describe the actions of people and organizational leaders : Describe the actions of people and organizational leaders directly and indirectly involved with the tragedy. Specifically, address the ethical issues they faced
Write a program that prompts the user to enter two integers : Write a program that prompts the user to enter two integers, one even and one odd. Verify each input and end the program with an error message.

Reviews

len2356110

8/11/2019 9:55:15 PM

General criteria: playability, accuracy, careful coding, maintainability of the code, commenting, choice of names for classes, methods (and variables if necessary). Submission: You must export your game as both: a JAR file (application); and a Greenfoot archive (gfar) file. Please name your fileappropriately, e.g. cseton10_Ass2.jar and cseton10_Ass2.gfar 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.

Write a Review

Programming Languages Questions & Answers

  Write a trigger for total percentage of all appointments

Write a trigger on Works department to ensure the following requirement; the total percentage of all appointments for an employee must be fewer than 100%.

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

  Create a program for a ledger''s furniture store

Create a program for a Ledger's Furniture Store. Create a pseudocode program using Notepad++ to solve this problem. Third, create the program with RAPTOR.

  Develop the payroll program to enter two double values

Develop the payroll program named CalcPay which permits the user to enter two double values namely hours worked and hourly rate.

  Write a program that prints the number of vowels

Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e', 'i', 'o', 'u', and 'y'.

  Assume the filling process is so slow that the tank air

a large compressed air storage tank with a volume of 100 m3is initially at 200 kpa and 288 k. the supply line valve is

  Write a program that will predict the size of a organisms

Write a program that will predict size of a population of organisms. The program should ask for starting number of organisms, their average daily population increase (as a percentage), and the number of days they wll multipy.

  Difference between the internet and the world wide web?

difference between the Internet and the World Wide Web?

  Description of the logical units of the application

You are required to build a console application where you will be asked to read various inputs from the keyboard

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Define a logmat class to represent logical matrix

COMP3200: Object-Oriented Programing Assignment. Define a class (called LogMat) to represent logical matrix of any binary relation as explained previously. The class has three member variables: matrix(as dynamic 2-D array), rowSize and columnSize

  Two-dimensional array to store weekly hours for employees

Assume the weekly hours for all employees are stored in two-dimensional array. Each row records emaployee's seven-day workhours with seven columns.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd