mirror of
https://github.com/thepigeongenerator/breakout_clone.git
synced 2025-12-17 06:15:46 +01:00
18 lines
272 B
C
18 lines
272 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
#include <SDL2/SDL.h>
|
|
|
|
typedef struct {
|
|
unsigned x;
|
|
unsigned y;
|
|
} Position;
|
|
|
|
typedef struct {
|
|
Position ball_pos;
|
|
Position bouncer_pos;
|
|
} Level;
|
|
|
|
|
|
void level_init(Level* level);
|
|
void level_update(Level* level, bool* keys);
|