diff_months: 21

CSC71001: Programming - Little-Crab Games' Code - IT Assignment Help

Download Solution Now
Added on: 2022-08-20 00:00:00
Order Code: 12_20_12675_145
Question Task Id: 227141
  • Subject Code :

    CSC71001

  • Country :

    Australia

Assignment Task:

Task:

1. Modify your little-crab games' code from last week so that when the player collects a food piece you add 5 points to the score.

2. Modify your little-crab games' code from last week so that instead of the game ending when the player is hit by the enemy or the timer runs out (you can comment out this code), that the enemy is removed, and 25 points is taken away from the score.

3. Save your game as A6-19_rmason10.gfar. Replace rmason10 with your username for MySCU. 
 

 

1. Which type of casting would be used to cast a double to and Int type?

2. Which type of casting would be used to cast an Int to a double type?

3. Imagine I have a game with a world class called "Space". If I had a method In my world class called playSound() that plays a sound whenever the player Is hit by something In the Space world, how would I reference this from outside the class using casting? Write code to reference this method. 4. What would the output of the following code be? Public void conyertinteger (){ double firstDouble = 10.11; int newint = (int) firstDouble; System. out . pri ntl n (newint) ; firstDouble = newint; System. out . pri ntl n (fi rstpouble) ; 

 

"** Activity R4-5 *"* Practical Skills Assignment - Your Game 
This activity will continue with the scenario you created last week.

1. Open the game you created in activity R3-7 last week. Add one (1) Player object to the world

2. Add the number of Food objects to the world equal to the number of characters in your family name.

3. Add three (3) Enemy objects to the world.

4. Save the scene.

5. Save your game as a Greenfoot Archive file, called ActivityR4-5.gfar, in your Practical Skills Assignment folder 
 

13. Save your game as a JAR application 14. Save your game as a Greenfoot Archive file "** 15. Save both of these into your Practical Skills Assignment folder. *** 
**" Activity R4-4 *** Practical Skills Assignment Activity 
Note: Only complete this activity IF you have no microphone for the previous activity. You do not have to complete both activities for your Practical Skills Assignment. Only the scenario part of this activity is to be submitted as part of your Practical Skills Assignment. The first questions will help you to find the correct answers and code for the scenario. The parts marked with a *** are to be completed as part of your Practical Skills Assignment. 
1. Open the stickman scenario provided *** 
2. We have previously used the move(distance) method in our actors to move to the right or left. How would we move a random distance between 0 and 10 units? a. to the left?   b. to the right?   
3. In your stickman scenario, make the stickman move to the RIGHT, so that when you run your scenario, he walks over to the right side of the screen. Note: no keyboard input is required. *""` 
4. Using an if-statement and the keyboard handling you learned in this module, make the stickman move RIGHT only when you press the space bar. Test. **** 
5. Change your code to make the stickman move LEFT a random amount between 0 and 10 when the space bar is pressed, but move continuously RIGHT (again, random distances) if it is not pressed. Test. Try to keep him near the centre of the screen. *"" 
6. Move the code that moves left when you press the key into its own method. Call this 
CSC71001 - Module 4 - Page 16 
method movelfSpace. Test. Make sure it works as before *** 
7. Add another method to your class called gameOver. This method should be called if the stickman reaches the edge of the screen. When called, the method plays a game-over sound and stops the scenario. ""* 
8. Move the check for the game-over condition itself into a separate method called checkGameOver. The act method should call checkGameOver which in turn calls gameOver if appropriate. *"* 
9. Save your game as a JAR application *** 10. Save your game as a Greenfoot Archive file "** 11. Save both of these into your Practical Skills Assignment folder. *** 
 

 

This CSC71001: IT Assignment has been solved by our IT  Experts at Exam Question Bank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

  • Uploaded By :
  • Posted on : December 08th, 2018
  • Downloads : 3
  • Views : 403

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more