Highlights
TASK:
* Available functions (see Assignment document for explanations on what each function does):
* treeFront, treeAbove, treeBelow, treeToLeft, treeToRight,
* getDirection, setDirection,
* move,
* isScared,
* animate, animateDead, animateScared,
* getClara, getGhostHealer,
* isAboveMe, isBelowMe, isToMyLeft, isToMyRight,
* makeClaraDead,
* playGhostEatenSound,
* isPacmanIntroStillPlaying,
* wrapAroundWorld
*/
class Ghost extends Character
{
//Add and initialise Ghost variables here
/**
* Act method, runs on every frame
TASK2:
/**
* MyClara
*
* Available functions (see Assignment document for explanations on what each function does):
* treeFront, ghostWallFront,
* getDirection, setDirection,
* move,
* makeScared, isScared,
* animate, animateDead,
* onLeaf, removeLeaf,
* onMushroom, removeMushroom,
* allLeavesEaten,
* isClaraDead,
* playClaraDieSound, isClaraDieSoundStillPlaying,
* playLeafEatenSound,
* playPacmanIntro, isPacmanIntroStillPlaying,
* wrapAroundWorld,
* getCurrentLevelNumber, advanceToLevel
*/
class MyClara extends Clara
{
// Please leave this first level here,
// until after you've completed \"Part 12 -
// Making and Adding Levels\"
public final char[][] LEVEL_1 = {
{'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'},
{'#','$','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','$','#'},
{'#','.','#','#','.','#','.','#','#','#','#','#','.','#','.','#','#','.','#'},
{'#','.','.','.','.','#','.','.','.','.','.','.','.','#','.','.','.','.','#'},
{'#','#','#','#','.','#',' ','#','#','|','#','#',' ','#','.','#','#','#','#'},
{' ',' ',' ',' ','.',' ',' ','#','%','?','%','#',' ',' ','.',' ',' ',' ',' '},
{'#','#','#','#','.','#',' ','#','#','#','#','#',' ','#','.','#','#','#','#'},
{'#','.','.','.','.','.','.','.','.','#','.','.','.','.','.','.','.','.','#'},
{'#','.','#','#','.','#','#','#','.','#','.','#','#','#','.','#','#','.','#'},
{'#','$','.','#','.','.','.','.','.','@','.','.','.','.','.','.','.','$','#'},
{'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'}
};
// Movement constants
public final String UP = "up";
public final String DOWN = "down";
public final String LEFT = "left";
public final String RIGHT = "right";
// Add and initialise Clara's variables here
/**
* Act method
*
* Runs of every frame
*/
public void act()
{
//Make Clara do things here
}
//Give Clara functions here
}
*/
public void act()
{
//Make the Ghost do things here
}
//Give the Ghost functions here
}
This IT Assignment has been solved by our IT Experts at My Uni Paper. 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.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.