Learning to program with ALICE Faery Magic Create a world that have at least 5 d
ID: 3711279 • Letter: L
Question
Learning to program with ALICE
Faery Magic Create a world that have at least 5 different objects from the Furniture Gallery and a Faery from the Fantasy/Faeries Gallery. The Faery has the power to make an object disappeared. Everything that the faery touches disappears from the scene. Create an interactive game where the user clicks one object at a time from the scene; then, the faery faces that object and moves in direction to it. Write a recursive method named CheckDistance, that checks whether the faery is very close to the object clicked by the user. If it is, the faery bends over to touch the object. After the faery touches the object, the object disappears (this is the base case of the recursion). If the faery is not yet close enough to the object to be able to touch it, the faery moves a small distance forward and the CheckDistance method is recursively called (this is the recursive case of the recursion). In addition to the Alice world, submit the design of the game using a textual storyboard; include the design of the event and the design of the CheckDistance method.
THE PROGRAMMING NAME IS ALICE
Guys!!!! its ALICE (java) Alice 2
Explanation / Answer
Alice is facing the furniture. (Use PointAt to make this alignment.) Write a recursive method, named CheckDistance, that checks whether Alice is very close to the furniture (within 1 meter). If it is, Alice bends over to touch the furniture. After Alice touches the furniture, the furniture turns to disappear. If Alice is not yet close enough to the furniture to be able to touch it, Alice moves a small distance forward ( one-tenth meter) and the CheckDistance method is recursively called.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.