Copy Link
Add to Bookmark
Report
Fish Head Gang 05-11
_______ __ ___ ---------------------------------------------
__/ ___|\ / \/ ___\......Issue: FHG5-11.TXT.................. |
| ___| |_| |/ __ .....Author: Dirty Bird................... |
\/| | _ || \ \...Subject: Nugget source code........... |
| _| | | | \_\ |..FHG Pak: 05 |
\__/ \__/ \__/\_____/_____________________________________________|
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<dos.h>
#define VIDEO 0x10
#define COLS 80
#define ROWS 25
int rnd(int range);
void locate(int col, int row);
void seedrnd(void);
void cls(void);
/* Now Main */
int main(void)
{
int x;
int y;
cls();
seedrnd();
for(x=0;x<3000;x++){
locate((rnd(70)),(rnd(24)));
printf("%c%c1;%d;%dmNUGGETS!!!\n",27,91,(rnd(8)+30),(rnd(8)+40));
}
sleep(3);
cls();
printf("%c%c14h",27,91);
printf("%c%c0;37;40m",27,91);
locate(31,12);
printf("3000 Nuggets! HAHAHAHAHA");
locate(30,13);
printf("I WILL STEAL THAT NUGGET SIGN!");
locate(25,14);
printf("AND I WILL TRADE IT FOR PERKY BREASTS!");
sleep(2);
locate(0,25);
return;
}
/* Prototypes */
int rnd(int range)
{
int r;
r=rand()%range;
return(r);
}
void seedrnd(void)
{
srand((unsigned)time(NULL));
}
void locate(int col, int row)
{
union REGS regs;
regs.h.ah=0x02;
regs.h.bh=0x00;
regs.h.dh=row;
regs.h.dl=col;
int86(VIDEO,®s,®s);
}
void cls(void)
{
union REGS regs;
regs.h.ah=0x06;
regs.h.al=0x00;
regs.h.bh=0x07;
regs.h.ch=0x00;
regs.h.cl=0x00;
regs.h.dh=ROWS-1;
regs.h.dl=COLS-1;
int86(VIDEO,®s,®s);
locate(0,0);
}