💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Tetris › files › 59dc7cfdf392aed5b79fc25f894… captured on 2023-12-28 at 15:48:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-08)

-=-=-=-=-=-=-

Go Back

0 /* See LICENSE file for copyright and license details. */

1

2 /* Default integer type */

3 #define _uint unsigned short

4

5 /* Large integer type */

6 #define _ulong unsigned long

7

8 /* Frame per second */

9 #define FPS 60

10

11 /* Number of milliseconds between each game tick */

12 #define TICK 400

13

14 /* Number of blocks horizontally */

15 #define SIZEX 10

16

17 /* Number of blocks vertically */

18 #define SIZEY 20

19

20 /* Colors id */

21 enum {

22 I_BLOCK,

23 J_BLOCK,

24 L_BLOCK,

25 SQ_BLOCK,

26 S_BLOCK,

27 T_BLOCK,

28 Z_BLOCK,

29 I_BORDER,

30 J_BORDER,

31 L_BORDER,

32 SQ_BORDER,

33 S_BORDER,

34 T_BORDER,

35 Z_BORDER,

36 BACKGROUND,

37 TEXT

38 };

39

40 #ifdef X11

41 #define WIDTHX 16

42 #define WIDTHY 30

43 #define THICK 4

44 #elif TERMINAL

45 #define WIDTHX 3

46 #define WIDTHY 4

47 #define THICK 1

48 #elif POKITTO

49 #define WIDTHX 3

50 #define WIDTHY 4

51 #define THICK 1

52 #else

53

54 /* Digit bar horizontal length */

55 #define WIDTHX 8

56

57 /* Digit bar vertical length */

58 #define WIDTHY 15

59

60 /* Digit bar thickness */

61 #define THICK 2

62

63 #endif

64