summaryrefslogtreecommitdiff
path: root/tetris.c
blob: 88a99f3d5d59e668782242a6dab4a4c69701703f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <string.h>

#define UNUSED(x) (void)(x)

volatile sig_atomic_t g_int_ctrl_c = 0;
int g_score = 0;

void interrupt_handler(int sig) {
	UNUSED(sig);
	g_int_ctrl_c = 1;
}

void parse_args(int argc, char **argv) {

}
void die(void) {

}
int main (int argc, char **argv) {
	parse_args(argc, argv);
	int width;
	int height;
	
	/* handle SIGINT interrupts */
	signal(SIGINT, interrupt_handler);
	/* Hide cursor */
	print("\033[?251");
	/* Game Loop */
	while (1) {
	}
	return 0;
}