home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 January
/
Chip_2004-01_cd1.bin
/
oddech
/
flashgames
/
stress
/
install
/
stresspaint.exe
/
scripts
/
frame_172
/
DoAction.as
Wrap
Text File
|
2002-07-26
|
982b
|
40 lines
hitrate = Math.round(hits / totalshots * 100);
if(isNaN(hitrate))
{
hitrate = 0;
}
if(level == 7)
{
messages.level = "GAME OVER";
messages.score = "your score: " + score;
messages.shots = "shots fired: " + actualshots;
messages.hitrate = "your hit rate: " + hitrate + "%";
blnGameOver = true;
if(50 < hitrate)
{
messages.message = "WELL DONE! GAME COMPLETE.";
}
else
{
messages.message = "Oh Dear ! Look\'s like it\'s GAME OVER";
blnGameOver = true;
}
}
else
{
messages.level = "Level " + level;
messages.score = "your score: " + score;
messages.shots = "shots fired: " + actualshots;
messages.hitrate = "your hit rate: " + hitrate + "%";
if(50 < hitrate)
{
messages.message = "nice shooting time for the next level";
}
else
{
messages.message = "oh dear ! you didn\'t shoot well enough for the next round";
blnGameOver = true;
}
}
stop();