|
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 - download
Length: 512 (0x200) Types: TextFile Names: »score.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/X/Roids/score.c«
/* score.c -- Print the score. */ #include "roids.h" static int nextbonus; PaintScore() { static Arg args[] = { {"label", NULL}, }; char str[500]; if (score >= nextbonus) { shipsleft++; nextbonus += 10000; } sprintf(str, "Ships on reserve: %d Score: %d", shipsleft, score); args[0].value = (XtArgVal) str; XtSetValues(scorewidget, args, XtNumber(args)); } InitScore() { score = 0; shipsleft = 3; nextbonus = 10000; PaintScore(); }