All pastes #11096 Raw Edit

Unnamed

public text v1 · immutable
#11096 ·published 2005-05-06 02:52 UTC
rendered paste body
///SYSTEM.VC

void autoExec()
{
	int t1;
	int t2;
	int ticks=320;
	int frame;//THIS IS GOING TO BE INVERTED OF TICKS, 
						//IT WILL BE HOW MANY TICKS HAVE BEEN SUBTRACTED...

	while(ticks)
	{
		t2 = timer - t1;
		t1 = timer;
		if(t2)
		{


			//THIS IS WHERE YOU DO SHIT FOR THE DURATION OF TICKS
			rectFill(0,0,320,240,RGB(1,1,1),screen);
			rectFill(0,0,ticks,240,RGB(200,155,150),screen);
			//THIS IS WHERE YOU DO SHIT FOR THE DURATION OF TICKS
			
			if(frame>49)
			{
				printString(10,10,screen,0,"Half a Second");
			}
			if(frame>99)
			{
				printString(20,20,screen,0,"1 Second has passed");
				if(frame<299)
				{
					printString(30,30,screen,0,"This will display for 2 seconds...");
				}
			
			}

			//THIS IS WHERE YOU DO SHIT FOR THE DURATION OF TICKS
			
			showPage();
			ticks--;
			frame++;
		}
	}

	while(!b1)
	{
		printString(50,50, screen, 0, "Demo over, press enter to quit...");
		showPage();
	}
}