From 1f93c3ef62af6c71217f06491ca2b859d4065740 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sat, 16 Aug 2025 10:11:00 +0500 Subject: in practice chapter --- in_practice/breakout/ball.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 in_practice/breakout/ball.h (limited to 'in_practice/breakout/ball.h') diff --git a/in_practice/breakout/ball.h b/in_practice/breakout/ball.h new file mode 100644 index 0000000..f33773a --- /dev/null +++ b/in_practice/breakout/ball.h @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2