home *** CD-ROM | disk | FTP | other *** search
- fan.start(0,10000);
- lvlcurrent = 0;
- score = 0;
- health = 100;
- deadslimenum = 0;
- lvl = 1;
- lvlpoints = 2000;
- vol = 0;
- newVol = 0;
- bgmusic.start(0,1000);
- bgmusic.setVolume(70);
- _root.onEnterFrame = function()
- {
- vol -= (vol - newVol) / 17;
- fan.setVolume(vol);
- trace(vol);
- if(Key.isDown(38) || Key.isDown(40))
- {
- newVol = 80;
- }
- else
- {
- newVol = 0;
- }
- _root.player.ySpeed -= _root.lvlcurrent;
- if(_root.ground._x < 20 && lvlpoints >= 1)
- {
- lvlpoints--;
- }
- currentlevel = lvl + "/30";
- texthealth = "Health:" + health + "%";
- };
-