mirror of
https://github.com/thepigeongenerator/breakout_clone.git
synced 2025-12-16 22:05:45 +01:00
25 lines
370 B
C
25 lines
370 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
#include <SDL2/SDL.h>
|
|
|
|
typedef struct {
|
|
unsigned x;
|
|
unsigned y;
|
|
} Position;
|
|
|
|
typedef struct {
|
|
struct {
|
|
unsigned radius;
|
|
Position pos;
|
|
} ball;
|
|
|
|
struct {
|
|
unsigned width;
|
|
Position pos;
|
|
} bouncer;
|
|
} Level;
|
|
|
|
|
|
void level_init(Level* level);
|
|
void level_update(Level* level, bool* keys);
|