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

Monday, November 19, 2018

Whack A Mole - ALICE Program

Whack A Mole



 In this game, the player picks up a hammer and whacks at a mole-like puppet that pops up here and there out of a box. Points are scored each time the player whacks a mole. 
One possible modification to the WhackAMole game is to play it until the user has whacked all of the moles. To make this adjustment, change the color of a mole in the list to red whenever it is whacked. Allow the mole to be raised only if it is not already red. The game ends when all moles have been whacked!

Solution:
The user moves the mouse to click (or whack) on the mole that pops up. Every time a mole is whacked, there is a pop sound effect. The mole that has been whacked changes its color to red. The score of the user is tracked by the yellow cylinder, which keeps increasing when the user whacks a mole successfully. It is made sure that no red mole ever pops up.
Once the user has whacked all the moles, a congratulatory message is displayed.

See the attached video created using Alice 2.4 for this program using the actual source code.



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.

Friday, December 2, 2016

Room Remodel - ALICE Program

Room Remodel

Sometimes the hardest decision to make when repainting a room is choosing the color. Create a world that helps a person decide what color they should choose for their walls and carpeting. Make a room scene by using three squares (SHAPES) as the wall and add furniture (Furniture) to it. To get the look and feel of carpeting, add the moonSurface (Space) and use its texture for the floor. Create a list named wallColor (a list of type Color) and add five colors to the list. Create a second list of colors name floorColors and add five colors to the list. Use nested For all loops with the lists to show every possible combination for the wall and floor colors. Use a wait statement to allow the viewer to see a color combination a couple second before showing the next color combination