home *** CD-ROM | disk | FTP | other *** search
- function checkGameOver()
- {
- if(_parent.database.lives == 1)
- {
- _root.userDatabase.score = _parent.database.score;
- _parent._parent.gotoAndStop("gameOver");
- }
- else
- {
- _parent.database.lives -= 1;
- _parent.heroInfo.lives = _parent.database.lives;
- }
- resetHero();
- resetTimer();
- resetSupplies();
- }
-