1From: dennisf@flaherty.elk.miles.com (Dennis Flaherty) 2Subject: Re: xoj with gathering crowd 3 4 5In article <304tv8$gmv@fnnews.fnal.gov>, 6The Doctor <jeffk@cdibm.fnal.gov> wrote: 7> This is pretty crude (my first contrib to the PD world), so go easy 8> with the flames. It uses the same colors for the shirts as the 9> helicopters, and looks crummy on monochrome. But, I already wasted 10> one evening on it and should get back to my life, such as it is. 11> Thanks to the originator for the laughs. 12 13My 3-line Imakefile and patch to make the copters move around still work 14(shifted 12 lines) with this version too-- here they are again: 15 16------ Imakefile ------- 17 18LOCAL_LIBRARIES = XawClientLibs 19DEPLIBS = XawClientDepLibs 20SimpleProgramTarget(xoj) 21 22------ Moving Copters patch ------- 23 24*** xoj.c.orig Fri Jul 1 10:02:16 1994 25--- xoj.c Thu Jul 14 08:36:11 1994 26*************** 27*** 301,307 **** 28 copters[i].y = copcars[i].y + 5; 29 30 copters[i].xStep = BroncoSpeed; 31! copters[i].yStep = 0; 32 } 33 34 /* Initialize the i'th cop car */ 35--- 301,307 ---- 36 copters[i].y = copcars[i].y + 5; 37 38 copters[i].xStep = BroncoSpeed; 39! copters[i].yStep = 1; 40 } 41 42 /* Initialize the i'th cop car */ 43*************** 44*** 348,362 **** 45 { 46 EraseCopter(i); 47 48! /* Move forward */ 49! copters[i].x = copters[i].x + copters[i].xStep; 50! 51! /* Copters stay at the same height */ 52! 53! if (copters[i].x >= display_width) { 54! InitCopter(i); 55! copters[i].x = 0; 56! } 57 58 DrawCopter(i); 59 } 60--- 348,364 ---- 61 { 62 EraseCopter(i); 63 64! /* Copters move around! - dennisf@denix.elk.miles.com */ 65! copters[i].x += theBronco.xStep; /* keep up with theBronco */ 66! if (RandInt(10) > 3) copters[i].x += copters[i].xStep; 67! if (copters[i].x < 0) copters[i].x = display_width; 68! if (copters[i].x > display_width) copters[i].x = 0; 69! if (RandInt(10) > 8) copters[i].xStep = -copters[i].xStep; 70! 71! if (RandInt(10) > 3) copters[i].y += copters[i].yStep; 72! if (copters[i].y < 0) copters[i].y = display_height; 73! if (copters[i].y > display_height) copters[i].y = 0; 74! if (RandInt(10) > 8) copters[i].yStep = -copters[i].yStep; 75 76 DrawCopter(i); 77 } 78 79-- 80 81 82 83