Xref: utzoo comp.sources.wanted:5083 soc.net-people:859
Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!littlei!donk!cyn
From: cyn@donk.UUCP (cyn)
Newsgroups: comp.sources.wanted,soc.net-people
Subject: Re: suicide.c
Message-ID: <160@donk.UUCP>
Date: 20 Sep 88 17:44:58 GMT
References: <754@gtx.com>
Reply-To: cyn@.UUCP (Cyndee Orleck)
Organization: DTO, Intel Corporation; Hillsboro, OR
Lines: 89
Can you believe it??? I just happened to have it hangin around all
these years!!
++++++++++++<>++++++<>++<>++++++++++++++++++++
#include
#include
main()
{
int i,j;
static int cx[] = {
20, 25, 30, 40, 44, 48, 57 };
static char *road[]={
"--------------------------------------------------------------",
" ",
" ",
" --- --- --- --- --- --- --- --- --- --- --- --- ---",
" ",
" ",
"--------------------------------------------------------------" };
static char *car[] = {
" _/-\__",
" =o--o+"};
static char *guy[] ={
"o",
"X",
" "};
static char *boom[] ={
" .* .",
" ^ : .o. ",
" = \'$-# . ",
" . /=./\ ",
" . v . "};
static char *cry[] ={
"Hey!",
"You!",
"Watch out",
"for",
"the",
"CAR !!!!"};
static char *bye[] = {
" ",
" ",
" ",
"Bye",
"sick",
" world !!"};
initscr();
clear();
printpic(road, 7, 8, 0);
for (i=0; i < 60; i++){
printpic(car, 2, 12, i);
if (i%10 == 0) {
j = i/10;
printpic(guy, 3, 17-(j), 65);
mvprintw(3, cx[j], cry[j]);
mvprintw(20, cx[j]+18, bye[j]);
if(j == 5)
mvprintw(14, 64, "---");
}
}
printpic(boom, 4, 11, 60);
refresh();
endwin();
getchar();
}
printpic(pic, len, y, x)
char **pic;
int len, x, y;
{
int i;
for (i=0; i < len; i++)
mvprintw(i + y, x, pic[i]);
refresh();
}