summaryrefslogtreecommitdiffstats
path: root/src/ball.h
blob: 6090c8ef1b663c18bb82e1fc2b04d1fccf3b1b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef BALL_H
#define BALL_H

#include "board.h"

static const int BALL_START_X_NORMAL = 40;
static const int BALL_START_Y_NORMAL = 12;

struct ball {
	int x;
	int y;
	struct ball *next;
};

struct ball *new_ball(int x, int y);
void free_ball(struct ball *b);
void update_ball(struct ball *b);
void draw_ball(struct ball *b);

#endif