home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / languages / cdemos / c / ColRoad next >
Encoding:
Text File  |  1996-04-09  |  381 b   |  20 lines

  1. #INCLUDE <bbc.h>
  2. /* This was written using The Serial Port's C Interpreter, and so I am not
  3.  * sure which header files need to be included */
  4. main()
  5. {
  6. int start,finish,x,pause;
  7. start=0;
  8. finish=1250;
  9. bbc_mode(15);
  10. bbc_cursor(0);
  11. for(x=0; x!=126; x++)
  12.   {
  13.   bbc_gcol(0, x);
  14.   bbc_rectanglefill(start,(x*5),finish,5);
  15.   pause=bbc_inkey(3);
  16.   start=start+5; 
  17.   finish=finish-10;
  18.   }
  19. }
  20.