home *** CD-ROM | disk | FTP | other *** search
- function mapRedraw()
- {
- _root.displayTitle = _global.lib.lvls[_root.mapId].title;
- _root.displayScoreLevel = _root.scores[_root.mapId] <= 0 ? "---" : com.neodelight.std.XString.numberFormat(_root.scores[_root.mapId]);
- var _loc3_ = 0;
- while(_loc3_ < 6)
- {
- _root.map["lvl" + _loc3_].gotoAndStop(_root.mapId != _loc3_ ? (_global.game.maxLevel >= _loc3_ ? 2 : 1) : 3);
- _loc3_ = _loc3_ + 1;
- }
- }
- function startLevel(id)
- {
- _global.dir = "";
- _global.game.actLevel = _root.mapId = id;
- _global.snd.playEvent("sndClick",1);
- _global.snd.channelsById.music.stop();
- _global.snd.playLoop("sndAthmo" + _global.lib.lvls[id].skin,0,undefined,"athmo");
- _global.snd.fadeChannel("athmo",0.3,60);
- _global.snd.playLoop("sndDrive",0,undefined,"drive");
- _root.gotoAndPlay("game");
- }
- map.level0pop._visible = freshGame;
- freshGame = false;
- displayScore = com.neodelight.std.XString.numberFormat(score);
- mapId = com.neodelight.std.XMath.toNumber(_global.game.actLevel);
- if(!shared.data.maps[mapId])
- {
- shared.data.maps[mapId] = [];
- shared.data.maps[mapId][0] = shared.data.maps[mapId][1] = shared.data.maps[mapId][2] = 0;
- }
- mapRedraw();
- stop();
-