All pastes #625707 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-19 03:31 UTC
rendered paste body
script 2 (void)  // Treadmill minigame start
{	
	iPlayer = PlayerNumber();
	bGameOver = false;
	iPoints = 98;
	
	Teleport(1);
	Ceiling_LowerAndCrush(5, 255, 255);
	Sector_SetDamage(5, 255, 0);
	if (bShowTut == true)
	{
		HudMessage(s:"Hello, and welcome to the\nJetsons Space DM treadmill\nminigame!"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 4.0);
		Delay(35*4);
		HudMessage(s:"Jane will spawn crazy\nobsticles at random, and you\nhave to dodge them!"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 4.0);
		Delay(35*4);
		HudMessage(s:"Every second you stay\non the treadmill, you get a\npoint, and every 100 points,\nthe level increases!"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 4.0);
		Delay(35*4);
		HudMessage(s:"When the level increases,\n1 more object is spawned\nper spawn interval, and the\nspeed of the treadmill\nis upped."; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 4.0);
		Delay(35*4);
		bShowTut = false;
	}
	HudMessage(s:"Ready?"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 2.0);
	Delay(35*2);
	HudMessage(s:"3"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 1.0);
	Delay(35*1);
	HudMessage(s:"2"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 1.0);
	Delay(35*1);
	HudMessage(s:"1"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 1.0);
	Delay(35*1);
	HudMessage(s:"Go!"; HUDMSG_PLAIN, 1, CR_GRAY, 0.1, 0.8, 4.0);
	Scroll_Floor(4, 50, 0, 2);
	Delay(35*4);
	HudMessage(s:"Points: ",d:iPoints; HUDMSG_PLAIN, 1, CR_RED, 0.1, 0.8, 1.0);
	
	while (bGameOver == false) {
		iPoints++;
		HudMessage(s:"Points: ",d:iPoints; HUDMSG_PLAIN, 1, CR_RED, 0.1, 0.8, 1.0);
		CheckLevel(iPoints);
		delay(35);
	}
}