mirror of
https://github.com/thepigeongenerator/breakout_clone.git
synced 2025-12-17 06:15:46 +01:00
initial commit
This commit is contained in:
17
level.h
Normal file
17
level.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user