Showing posts with label chapter 8. Show all posts
Showing posts with label chapter 8. Show all posts

Monday, April 23, 2018

Faery Magic - ALICE Program


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). Also Create instructions for the game
      
     

Solution: 
The user clicks the object and Faery moves towards it to make it disappear.
See the attached video created using Alice 2.3 for this program

This video is exported from Alice 2.3 from the actual source code of this program.

Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.

Thursday, November 30, 2017

Why Did the Chicken Cross the Road? - ALICE Program

Why Did the Chicken Cross the Road?


A popular child’s riddle is, “Why did the chicken cross the road?” Of course, there are many answers. In this project, the chicken (Animals) has a real sweet-tooth and crosses the road to eat the gumdrops (Kitchen/Food) along the way.


Write a game animation where the player guides the chicken across the road to get to the gumdrops. Cars and other vehicles should move in both directions as the chicken tries to cross to where the gumdrops are located. Use arrow keys to make the chicken jump left, right, forward, and back. Use the space bar to have the chicken peck at the gumdrop. When the chicken is close enough to the gumdrop and pecks, the gumdrop should disappear.
A recursive method is used to control the play of the game. If the chicken gets hit by a vehicle, the game is over (squish!). The game continues as long as the chicken has not managed to peck all the gumdrops and has not yet been squished by a vehicle. If the chicken manages to cross the road and peck at all the gumdrops along the way, the player wins the game. Signal the player’s success by making 3D text “You Win” appear or by playing some triumphant sound.

Solution:
The user can move the chicken using arrow keys and help it cross the road and can press space bar to peck at the gum drops. Chicken will be able to peck the gumdrops only when it is near it.

See the attached video created using Alice2.3 for this program

Contact me @ allassignmenthelp@gmail.com for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code. I can modify the program if you would need any changes.