summaryrefslogtreecommitdiff
path: root/in_practice/breakout/ball.h
blob: f33773ac6e81a4e5522910997328d3d6de8d4c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef BALL_H
#define BALL_H

#include "object.h"
#include "types.h"

typedef struct {
	object_t o;
	f32 radius;
	i32 stuck;
} ball_t;

extern void move_ball(ball_t *ball, f32 dt, i32 width);
extern void reset_ball(ball_t *ball, v2 pos, v2 vel);

#endif