Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 042.C

 
Output of file : 042.C contained in archive : LSPD05-2.ZIP
/* Light Speed Reference Example Program */
/* Random polygons */
#include "lspeed.h"
#include
#include

main()
{
/* Variables */
int locations[20][2], loop, looptop;

/* Set the graphics mode, register font */
set640x350();
registernicefont();

/* Seed the random numbers */
randomize();

/* Print the press a key message */
ega_writetext(220, 335, LS_YELLOW, LS_BLUE, NICE_FONT,
" Press a key to stop... ");

/* While there is no key... */
while (!kbhit())
{
/* Place a random pixel on the screen */
ega_putpoly(random(16), random(640), random(335), random(640),
random(335), random(640), random(335), random(640),
random(335), random(640), random(335), random(640),
random(335), -1, -1);

/* Small time delay */
delay(125);
}

/* Get the key, exit */
getxch();
set80x25();
}








  3 Responses to “Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 042.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/