#include <sys/time.h>
#include <sys/types.h>
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <str.h>
#include <unistd.h>
#include <getopt.h>
#include "input.h"
#include "scores.h"
#include "screen.h"
#include "tetris.h"
Go to the source code of this file.
Functions | |
static void | elide (void) |
int | main (int argc, char *argv[]) |
Main entry point. | |
static struct shape * | randshape (void) |
static void | setup_board (void) |
static void | srandomdev (void) |
static int | tetris_menu (int *level) |
static void | tetris_menu_draw (int level) |
static void | usage (void) |
Variables | |
cell | board [B_SIZE] |
int | classic |
int | Cols |
static const char | copyright [] |
shape * | curshape |
long | fallrate |
static int | firstgame = 1 |
char | key_msg [100] |
shape * | nextshape |
int | Rows |
int | score |
int | showpreview |
Definition in file tetris.c.