DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T s

⟦b90fffa9f⟧ TextFile

    Length: 626 (0x272)
    Types: TextFile
    Names: »set_level.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Tetris/set_level.c« 

TextFile

/*
** 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: set_level.c
** this decrements the interval timer everytime a new level is reached
*/
#include "tetris.h"

set_level()
{
	timer.it_interval.tv_usec = 500000 - (level * 1000 * DIFFICULTY);
	timer.it_value.tv_usec = 500000 - (level * 1000 * DIFFICULTY);
	setitimer(ITIMER_REAL, &timer, 0);
}