Showing posts with label pop. Show all posts
Showing posts with label pop. 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.

Wednesday, July 20, 2016

Pop the Balloon - ALICE program

Game: Pop the Balloon

This exercise builds on Project 5 from Chapter 6, the Random Sphere Catch Game. If you have already created the world for that project, you can add five additional spheres and then write the code for this exercise. If you did not previously create the world for the Random Sphere Catch Game, begin this exercise by first creating the game from Project 5 in Chapter 6. The moveAroundRandomly, disappear, and startGame methods should work as described in that project. In this new version of the game, you will use a list to make the code less complex and easier to understand. First, create a world-level list named spheres and add each of the 10 sphere objects to the list. Modify the startGame method to use a For all together to move around randomly all of the spheres in the list. When the mouse is clicked on anything call the disappear method. Modify the disappear method to use a For all in order to check if the item that was clicked was a sphere. If so, make it disappear. You may drop the smoke animation for this exercise, if you wish.

Chapter-9 Learning to program with alice

Solution:
In this game, the balloon pops when user clicks on it and this version of the game includes the smoke animation as well.
Below is the video for this Alice program, created using Alice 2.3



Contact me for the comprehensive step-by-step guide on how to create this game in ALICE as well as the final source code.