|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 655 (0x28f) Types: TextFile Names: »draw_shadow.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Tetris/draw_shadow.c«
/* ** written by adam margulies vespa@ssyx.ucsc.edu ** {...}!ucbvax!ucscc!ssyx!vespa ** ** permission is granted to freely distribute this code provided that you: ** ** 1) don't charge for it ** 2) leave my name and header on it ** 3) clearly document your changes and place your name on them ** */ /* Tetris: draw_shadow.c ** ** draws the shadow of the block at row 21 ** */ #include "tetris.h" void draw_shadow() { int i; for(i=35; i<45; i++) { if ( i >= (curx + (xoffset ? 1 : 0)) && i < (curx + current->width + (xoffset ? 1 : 0)) ) mvaddch(22,i,'='); else mvaddch(22,i,'-'); } csr_draw(22,35,22,44); }