The camera position in this game is fixed to a “top-down” view without any swinging or zooming. The player can always see his/her character of the same size, moving freely at his/her own wish within the screen. Enemies are showing up from the top, descending to the bottom of the screen, all are with the same fixed default sizes.
In the game, the player’s screen shows a background of sky with scrolling clouds. Player’s character, Vegetto, is positioned at center by default. Of course, the player can move Vegetto around using arrow keys. In addition, player can find out two elements on the screen, telling the information about Vegetto’s status as follow:
There are no major cut-scenes in the game that would be beneficial to the game.
The only item in this game is the green Senzu bean. It is worth 200 points for reward and it can restore 1 live for Vegetto. Here is the picture of it:
, the ultimate evil fighter called Majin Buu is resurrected and brings a great threat to the Earth! All fighters on Earth are defeated and died except the two greatest warriors: Goku & Vegeta. However, even in their full power, Goku and Vegeta cannot beat him because Buu is fissionable. Majin Buu keeps re-generating himself even his body is destroyed. In order to gain more power, Supreme Kai (the God) gives a pair of earrings to Goku. With each of them wearing one earring, Goku now fuses with Vegeta to transform to the ultimate super hero – Vegetto! The only way to stop the disaster is to kill ALL Majin Buus at a time!
5.2. Plot Summary
Simulated the story in in Dragonball Z, Vegetto will battle with Majin Buu in the sky while Majin Buu is fissionable. Vegetto needs to use his greatest power to destroy all the Majin Buu in the sky, all at the same time.
In the upper right corner of the screen, user can see the number of lives of Vegetto remained. In the left bottom corner, user can see the scoreboard that shows user’s current score. For the characters, user is controlling Vegetto with golden hair, who is positioned in the middle of the bottom screen at start while Majin Buu is the fat and pink monster floating in the sky. If Majin Buu is shot, it will disappear and fade away. On the other hand, Vegetto is acting the same when he collides with one of the Majin Buus. When user loses all the 3 lives of Vegetto, a button will appear on the screen to ask user to try again.
-
Setting
The Sky Battle takes place on the Earth in the imaginary world created by Akira Toriyama in Dragonball Z. It is a world very similar to the real one. However, there are more super fighters that have the ability like Superman’s. The story starts by saying that the ultimate evil creature Majin Buu is revived from death. He is assumed to be purely evil and most powerful in the universe. Even uniting the power of all the fighters on Earth, Majin Buu is still invincible. Now the hope falls onto the two super fighters called Goku and Vegeta. Through fusion, they combined into one body and the greatest warrior Vegetto is born. He must stop Majin Buu from destroying the lives on Earth as soon as possible because the demolition is giant already and disaster is everywhere.
-
Introduction
The player controls the super fighter Vegetto. By using different attacks, the battle between Vegetto and the large number of evil creatures is going to be huge!
-
Flowchart for Majin Buu
1st and 2nd forms of Majin Buu show up at start by default
Score is between
5000 to 10000
1st, 2nd and 3rd forms of Majin Buu show up in the game
Score is between
10000 to 15000
1st, 2nd and 4th forms of Majin Buu show up in the game
Score is more than
15000
15000
1st, 2nd and 5th forms of Majin Buu show up in the game
-
Level and Scene Details
Levels are referring to the different forms of Majin Buu appeared in the game. The criteria for each form of Majin Buu are shown in the flow chart in 6.3 above.
For Scene, there is only one scene, the sky with scrolling clouds, throughout the game due to the short period of development time. The scrolling clouds give player a feeling of fast flying speed of Vegetto.
In this game, I learnt some techniques of FLASH game programming from the following sources:
-
www.flashkit.com
-
FLASH discussion group in www.macromedia.com
The followings are the source codes for different components (e.g. Vegetto, 5 forms of Majin Buu) appeared in the game.
/*At the ending after user beats the game*/
/*If user clicks "Continue" to try the game again*/
on (release) {
//reset player's live to 3
_root.live = 3;
//reset player's lock, so that Vegetto can be hit
_root.lock = 0;
//reset player's score to zero
_root.hit = 0;
//display the three live symbols at the upper right corner on the screen
setProperty ("_root.live1", _visible, "1");
setProperty ("_root.live2", _visible, "1");
setProperty ("_root.live3", _visible, "1");
//hide the ending screen again
setProperty ("_root.ending", _alpha, "0");
//hide the game over screen
setProperty ("_root.over", _alpha, "0");
//display the various forms of Majin Buu again
setProperty ("_root.t1", _alpha, "100");
setProperty ("_root.b1", _alpha, "100");
setProperty ("_root.m1", _alpha, "100");
//reset Vegetto and display him as the original form
tellTarget ("/p1") {
gotoAndStop (1);
}
//reset keyboard acception
tellTarget ("_root.key") {
gotoAndPlay (1);
}
}
/*The following is to generate different forms of Majin Buu on the screen*/
_root.r = _root.r+1;
//duplicate the first form of Majin Buu which appears all the time
_root.t1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position appeared on the screen when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50)); //x-coord
setProperty ("/t"+_root.r, _y, -200); //y-coord
//if the number of this Majin Buu exeeds 50 at one screen
if (_root.r>50) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-10));
}
_root.r = _root.r+1;
//duplicate the second form of Majin Buu which appears all the time
_root.s1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position appeared on the screen when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50)); //x-coord
setProperty ("/t"+_root.r, _y, -200); //y-coord
//if the number of this Majin Buu exeeds 50 at one screen
if (_root.r>50) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-10));
}
//if score is between 5000 and 10000
if ((_root.hit > 5000) and (_root.hit <= 10000)) {
_root.r = _root.r+1;
//duplicate the 3rd kind of Majin Buu with bigger size
_root.me1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position appeared on the screen when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50)); //x-coord
setProperty ("/t"+_root.r, _y, -200); //y-coord
//if the number of this Majin Buu exeeds 50 at one screen
if (_root.r>50) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-10));
}
}
//if score is between 10000 and 15000
else if ((_root.hit > 10000) and (_root.hit <= 15000)){
_root.r = _root.r+1;
//duplicate the 4th kind of Majin Buu with bigger size
_root.m1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position appeared on the screen when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50)); //x-coord
setProperty ("/t"+_root.r, _y, -200); //y-coord
//if the number of this Majin Buu exeeds 50 at one screen
if (_root.r>50) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-10));
}
}
//if score is greater than 15000
else if (_root.hit > 15000) {
_root.r = _root.r+1;
//duplicate the 5th kind of Majin Buu with biggest size
_root.l1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position appeared on the screen when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50)); //x-coord
setProperty ("/t"+_root.r, _y, -200); //y-coord
//if the number of this Majin Buu exeeds 50 at one screen
if (_root.r>50) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-10));
}
}
/*The following is about the key detection from the keyboard*/
//if the key pressed is the right arrow and Vegetto is within the boundary
if (Key.isDown(Key.RIGHT ) and _root.p1._x<520) {
//move Vegetto to the right by 25 pixels
setProperty (_root.p1, _x, _root.p1._x+25);
}
//if the key pressed is the left arrow and Vegetto is within the boundary
if (Key.isDown(Key.LEFT) and _root.p1._x>30) {
//move Vegetto to the left by 25 pixels
setProperty (_root.p1, _x, _root.p1._x-25);
}
//if the key pressed is the up arrow and Vegetto is within the boundary
if (Key.isDown(Key.UP) and _root.p1._y>50) {
//move Vegetto upward by 25 pixels
setProperty (_root.p1, _y, _root.p1._y-25);
}
//if the key pressed is the down arrow and Vegetto is within the boundary
if (Key.isDown(Key.DOWN) and _root.p1._y<365) {
//move Vegetto downward by 25 pixels
setProperty (_root.p1, _y, _root.p1._y+25);
}
//if the key pressed is space bar, i.e. user shoots with 1st weapon
if (Key.isDown(Key.SPACE)) {
//play its shooting sound labeled by "s"
_root.s.start();
_root.n = _root.n+1;
//duplicate the ammo each time for 1 hit of key
_root.ball.duplicateMovieClip("x"+_root.n, _root.n );
//set the ammo x-coord position to the one of Vegetto's
setProperty ("/x"+_root.n, _x, _root.p1._x);
//set the ammo y-coord position to the one of his hand's tip
setProperty ("/x"+_root.n, _y, _root.p1._y-140);
//restrict the ammo can at most have 5 shots in one screen
if (_root.n>5) {
//remove the redundants
removeMovieClip ("/x"+(_root.n-5));
}
}
//if the key pressed is "z", i.e. user shoots with 2nd weapon
if (Key.isDown(90)) {
//play its shooting sound labeled by "u"
_root.u.start();
_root.n = _root.n+1;
//duplicate the ammo each time for 1 hit of key
_root.longball.duplicateMovieClip("x"+_root.n, _root.n );
//set the ammo x-coord position to the one of Vegetto's
setProperty ("/x"+_root.n, _x, _root.p1._x);
//set the ammo y-coord position to the one of his hand's tip
setProperty ("/x"+_root.n, _y, _root.p1._y-385);
//restrict the ammo can at most have 1 shot in one screen
if (_root.n>1) {
//remove the redundants
removeMovieClip ("/x"+(_root.n-1));
}
}
//if the key pressed is "a", i.e. user shoots with 3rd weapon
if ((Key.isDown(65)) and (_root.hit >= 2000)) {
//play its shooting sound labeled by "v"
_root.v.start();
_root.n = _root.n+1;
//penality: minus 250 points from score if user shoots with this one
_root.hit = _root.hit - 250;
//duplicate the ammo each time for 1 hit of key
_root.bigattack.duplicateMovieClip("x"+_root.n, _root.n );
//set the ammo x-coord position to the one of Vegetto's
setProperty ("/x"+_root.n, _x, _root.p1._x);
//set the ammo y-coord position to the one of his hand's tip
setProperty ("/x"+_root.n, _y, _root.p1._y-125);
//restrict the ammo can at most have 1 shot in one screen
if (_root.n>0) {
//remove the redundants
removeMovieClip ("/x"+(_root.n-1));
}
}
/*The following is adjusting the speed of 1st kind of Majin Buu
according to the score, the higher the score the higher the speed*/
//if score is < 3000
if (_root.hit < 3000) {
//displacement is +10
setProperty ("", _y, _y+10);
}
//if score is between 3000 and 6000
else if ((_root.hit < 6000) and (_root.hit >= 3000)) {
//displacement is +10
setProperty ("", _y, _y+10);
}
//if score is between 6000 and 9000
else if ((_root.hit < 9000) and (_root.hit >= 6000)) {
//displacement is +15
setProperty ("", _y, _y+15);
}
//if score is between 9000 and 12000
else if ((_root.hit < 12000) and (_root.hit >= 9000)) {
//displacement is +20
setProperty ("", _y, _y+20);
}
//if score is between 12000 and 15000
else if ((_root.hit < 15000) and (_root.hit >= 12000)) {
//displacement is +25
setProperty ("", _y, _y+25);
}
//if score is between 15000 and 18000
else if ((_root.hit < 18000) and (_root.hit >= 15000)) {
//displacement is +30
setProperty ("", _y, _y+30);
}
//if score is between 18000 and 21000
else if ((_root.hit < 21000) and (_root.hit >= 18000)) {
//displacement is +35
setProperty ("", _y, _y+35);
}
//if score is between 21000 and 24000
else if ((_root.hit < 24000) and (_root.hit >= 21000)) {
//displacement is +35
setProperty ("", _y, _y+35);
}
//if score is greater than 24000
else if (_root.hit >= 24000) {
//displacement is +40
setProperty ("", _y, _y+40);
}
/*Buu will move either to the right or left by 20 pixels at random
or stay at the current x-coord*/
randomx = random(10);
if (randomx>8) {
//move to the right
setProperty ("", _x, _x+20);
}
if (randomx<2) {
//move to the left
setProperty ("", _x, _x-20);
}
//load the sound assigned for Vegetto collides with Buu
losesound = new Sound();
//label the sound clip
losesound.attachSound("scream");
/*Test if Vegetto hits with Buu and check if Vegetto has just
been hit shortly before, if he doesn't, do the following*/
if (hitTest(_root.p1) and _root.lock <>1) {
//make one live symbol disappear
if (getProperty("_root.live3", _visible) == "1"){
setProperty ("_root.live3", _visible, "0");
}
else if (getProperty("_root.live2", _visible) == "1"){
setProperty ("_root.live2", _visible, "0");
}
else if (getProperty("_root.live1", _visible) == "1"){
setProperty ("_root.live1", _visible, "0");
}
//minus 1 live from player
_root.live = _root.live-1;
//play the music for losing one live
losesound.start(scream, 1);
//display Vegetto getting hit
tellTarget ("/p1") {
gotoAndPlay (2);
}
gotoAndPlay(8);
}
/*Check if ammo hits Buu and do the following*/
for (kkk=0; kkk<20; kkk++) {
if (hitTest("_root.x"+(_root.n-kkk))) {
gotoAndPlay (3);
//increase the score by 100 points for this form of Buu
_root.hit = _root.hit+100;
removeMovieClip ("_root.x"+(_root.n-kkk));
//if user scores more than 49999, i.e. beat the game
if (_root.hit > 49999) {
//display the ending scene
setProperty (_root.ending, _alpha, 100);
//make all the Buus invisible
setProperty (_root.t1, _alpha, 0);
setProperty (_root.b1, _alpha, 0);
setProperty (_root.m1, _alpha, 0);
setProperty (_root.l1, _alpha, 0);
setProperty (_root.me1, _alpha, 0);
setProperty (_root.s1, _alpha, 0);
//lock the keyboard so that user can't enter anything
tellTarget(_root.key) {
gotoAndStop (3);
}
}
}
}
/*The following is about the 2nd form of Majin Buu*/
//the y-coord displacement is fixed to +25
setProperty ("", _y, _y+25);
/*Buu will move either to the right or left by 15 pixels at random
or stay at the current x-coord*/
randomx = random(10);
if (randomx>8) {
setProperty ("", _x, _x+15);
}
if (randomx<2) {
setProperty ("", _x, _x-15);
}
//load the sound assigned for Vegetto collides with Buu
losesound = new Sound();
//label the sound clip
losesound.attachSound("scream");
/*Test if Vegetto hits with Buu and check if Vegetto has just
been hit shortly before, if he doesn't, do the following*/
if (hitTest(_root.p1) and _root.lock<>1) {
//make one live symbol disappear
if (getProperty("_root.live3", _visible) == "1") {
setProperty ("_root.live3", _visible, "0");
} else if (getProperty("_root.live2", _visible) == "1") {
setProperty ("_root.live2", _visible, "0");
} else if (getProperty("_root.live1", _visible) == "1") {
setProperty ("_root.live1", _visible, "0");
}
//minus 1 live from player
_root.live = _root.live-1;
//play the music for losing one live
losesound.start(scream, 1);
tellTarget ("/p1") {
gotoAndPlay (2);
}
gotoAndPlay (8);
}
/*Check if ammo hits Buu and do the following*/
for (kkk=0; kkk<20; kkk++) {
if (hitTest("_root.x"+(_root.n-kkk))) {
gotoAndPlay (3);
//increase the score by 150 points for this form of Buu
_root.hit = _root.hit+150;
removeMovieClip ("_root.x"+(_root.n-kkk));
//if user scores more than 49999, i.e. beat the game
if (_root.hit>49999) {
//display the ending scene
setProperty (_root.ending, _alpha, 100);
//make all the Buus invisible
setProperty (_root.t1, _alpha, 0);
setProperty (_root.b1, _alpha, 0);
setProperty (_root.m1, _alpha, 0);
setProperty (_root.l1, _alpha, 0);
setProperty (_root.me1, _alpha, 0);
setProperty (_root.s1, _alpha, 0);
//lock the keyboard so that user can't enter anything
tellTarget (_root.key) {
gotoAndStop (3);
}
}
}
}
/*The following is about the 3rd form of Majin Buu*/
//the y-coord displacement is fixed to +15
setProperty ("", _y, _y+15);
/*Buu will move either to the right or left by 20 pixels at random
or stay at the current x-coord*/
randomx = random(10);
if (randomx>8) {
setProperty ("", _x, _x+10);
}
if (randomx<2) {
setProperty ("", _x, _x-10);
}
//load the sound assigned for Vegetto collides with Buu
losesound = new Sound();
//label the sound clip
losesound.attachSound("scream");
/*Test if Vegetto hits with Buu and check if Vegetto has just
been hit shortly before, if he doesn't, do the following*/
if (hitTest(_root.p1) and _root.lock<>1) {
//make one live symbol disappear
if (getProperty("_root.live3", _visible) == "1") {
setProperty ("_root.live3", _visible, "0");
} else if (getProperty("_root.live2", _visible) == "1") {
setProperty ("_root.live2", _visible, "0");
} else if (getProperty("_root.live1", _visible) == "1") {
setProperty ("_root.live1", _visible, "0");
}
//minus 1 live from player
_root.live = _root.live-1;
//play the music for losing one live
losesound.start(scream, 1);
tellTarget ("/p1") {
gotoAndPlay (2);
}
gotoAndPlay (8);
}
/*Check if ammo hits Buu and do the following*/
for (kkk=0; kkk<20; kkk++) {
if (hitTest("_root.x"+(_root.n-kkk))) {
gotoAndPlay (3);
//increase the score by 200 points for this form of Buu
_root.hit = _root.hit+200;
removeMovieClip ("_root.x"+(_root.n-kkk));
//if user scores more than 49999, i.e. beat the game
if (_root.hit>49999) {
//display the ending scene
setProperty (_root.ending, _alpha, 100);
//make all the Buus invisible
setProperty (_root.t1, _alpha, 0);
setProperty (_root.b1, _alpha, 0);
setProperty (_root.m1, _alpha, 0);
setProperty (_root.l1, _alpha, 0);
setProperty (_root.me1, _alpha, 0);
setProperty (_root.s1, _alpha, 0);
//lock the keyboard so that user can't enter anything
tellTarget (_root.key) {
gotoAndStop (3);
}
}
}
}
/*The following is about the 4th form of Majin Buu*/
//the y-coord displacement is fixed to +15
setProperty ("", _y, _y+15);
/*Buu will move either to the right or left by 20 pixels at random
or stay at the current x-coord*/
randomx = random(10);
if (randomx>8) {
setProperty ("", _x, _x+10);
}
if (randomx<2) {
setProperty ("", _x, _x-10);
}
//load the sound assigned for Vegetto collides with Buu
losesound = new Sound();
//label the sound clip
losesound.attachSound("scream");
/*Test if Vegetto hits with Buu and check if Vegetto has just
been hit shortly before, if he doesn't, do the following*/
if (hitTest(_root.p1) and _root.lock<>1) {
//make one live symbol disappear
if (getProperty("_root.live3", _visible) == "1") {
setProperty ("_root.live3", _visible, "0");
} else if (getProperty("_root.live2", _visible) == "1") {
setProperty ("_root.live2", _visible, "0");
} else if (getProperty("_root.live1", _visible) == "1") {
setProperty ("_root.live1", _visible, "0");
}
//minus 1 live from player
_root.live = _root.live-1;
//play the music for losing one live
losesound.start(scream, 1);
tellTarget ("/p1") {
gotoAndPlay (2);
}
gotoAndPlay (8);
}
/*Check if ammo hits Buu and do the following*/
for (kkk=0; kkk<20; kkk++) {
if (hitTest("_root.x"+(_root.n-kkk))) {
gotoAndPlay (3);
//increase the score by 250 points for this form of Buu
_root.hit = _root.hit+250;
removeMovieClip ("_root.x"+(_root.n-kkk));
//if user scores more than 49999, i.e. beat the game
if (_root.hit>49999) {
//display the ending scene
setProperty (_root.ending, _alpha, 100);
//make all the Buus invisible
setProperty (_root.t1, _alpha, 0);
setProperty (_root.b1, _alpha, 0);
setProperty (_root.m1, _alpha, 0);
setProperty (_root.l1, _alpha, 0);
setProperty (_root.me1, _alpha, 0);
setProperty (_root.s1, _alpha, 0);
//lock the keyboard so that user can't enter anything
tellTarget (_root.key) {
gotoAndStop (3);
}
}
}
}
/*The following is about the 5th form of Majin Buu*/
//the y-coord displacement is fixed to +15
setProperty ("", _y, _y+15);
/*Buu will move either to the right or left by 20 pixels at random
or stay at the current x-coord*/
randomx = random(10);
if (randomx>8) {
setProperty ("", _x, _x+10);
}
if (randomx<2) {
setProperty ("", _x, _x-10);
}
//load the sound assigned for Vegetto collides with Buu
losesound = new Sound();
//label the sound clip
losesound.attachSound("scream");
/*Test if Vegetto hits with Buu and check if Vegetto has just
been hit shortly before, if he doesn't, do the following*/
if (hitTest(_root.p1) and _root.lock<>1) {
//make one live symbol disappear
if (getProperty("_root.live3", _visible) == "1") {
setProperty ("_root.live3", _visible, "0");
} else if (getProperty("_root.live2", _visible) == "1") {
setProperty ("_root.live2", _visible, "0");
} else if (getProperty("_root.live1", _visible) == "1") {
setProperty ("_root.live1", _visible, "0");
}
//minus 1 live from player
_root.live = _root.live-1;
//play the music for losing one live
losesound.start(scream, 1);
tellTarget ("/p1") {
gotoAndPlay (2);
}
gotoAndPlay (8);
}
/*Check if ammo hits Buu and do the following*/
for (kkk=0; kkk<20; kkk++) {
if (hitTest("_root.x"+(_root.n-kkk))) {
gotoAndPlay (3);
//increase the score by 300 points for this form of Buu
_root.hit = _root.hit+300;
removeMovieClip ("_root.x"+(_root.n-kkk));
//if user scores more than 49999, i.e. beat the game
if (_root.hit>49999) {
//display the ending scene
setProperty (_root.ending, _alpha, 100);
//make all the Buus invisible
setProperty (_root.t1, _alpha, 0);
setProperty (_root.b1, _alpha, 0);
setProperty (_root.m1, _alpha, 0);
setProperty (_root.l1, _alpha, 0);
setProperty (_root.me1, _alpha, 0);
setProperty (_root.s1, _alpha, 0);
//lock the keyboard so that user can't enter anything
tellTarget (_root.key) {
gotoAndStop (3);
}
}
}
}
/*The following handles the Sanzu beans duplication*/
_root.r = _root.r+1;
//duplicate one Sanzu bean
_root.b1.duplicateMovieClip("t"+_root.r, _root.r);
//set its position at random when show up
setProperty ("/t"+_root.r, _x, random(450)+Number(50));
setProperty ("/t"+_root.r, _y, -150);
//restrict the number of beans appeared in one screen to two
if (_root.r>3) {
//remove the redundants
removeMovieClip ("/t"+(_root.r-1));
}
/*The following is about one Sanzu bean*/
//the y-coord displacement is fixed to +10
setProperty ("", _y, _y+10);
//load the sound assigned for Vegetto collides with bean
eatsound = new Sound();
//label the sound clip
eatsound.attachSound("eat");
//if Vegetto collides with one bean, do the following
if (hitTest(_root.p1)) {
//if user now only has less than or equal to 2 lives
if (_root.live <= 2) {
//make one live symbol re-appear again on the screen
if (getProperty("_root.live2", _visible) == "0"){
setProperty ("_root.live2", _visible, "1");
}
else if (getProperty("_root.live3", _visible) == "0"){
setProperty ("_root.live3", _visible, "1");
}
//increase the 1 live of player
_root.live = _root.live+1;
}
gotoAndPlay (3);
//increase the score points by 200
_root.hit = _root.hit+200;
//play the music of picking up bean
eatsound.start(eat, 1);
gotoAndPlay(8);
}
/*The following handles the "Continue" on the Game Over screen*/
//If user clicks on "Continue"
on (release) {
//restore user's lives to 3
_root.live = 3;
//Vegetto has not been hit shortly before
_root.lock = 0;
//reset the score to zero
_root.hit = 0;
//display 3 live symbols at the upper right hand corner
setProperty ("_root.live1", _visible, "1");
setProperty ("_root.live2", _visible, "1");
setProperty ("_root.live3", _visible, "1");
//hide the Game Over screen
setProperty ("_root.over", _alpha, "0");
//reset Vegetto to his original form
tellTarget ("/p1") {
gotoAndStop (1);
}
//enable keyboard detection again
tellTarget ("_root.key") {
gotoAndPlay (1);
}
}
CIS587 Assignment 4 (Fall 2002) Man K. Woo 6/25/2016