forked from farnam_jhn/breakoutpp
added files
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
struct Player{
|
||||
int score = 0;
|
||||
std::string name;
|
||||
bool initialInput = false;
|
||||
int health = 3;
|
||||
bool gameover = false;
|
||||
bool won = false;
|
||||
};
|
||||
|
||||
struct Location{
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
struct Brick{
|
||||
Location loc;
|
||||
int score;
|
||||
};
|
||||
|
||||
struct Paddle{
|
||||
Location start_loc;
|
||||
// int lenght; // possible feature, right now considered 10
|
||||
};
|
||||
|
||||
struct Velocity{
|
||||
int vX;
|
||||
int vY;
|
||||
};
|
||||
|
||||
struct Ball{
|
||||
Location loc;
|
||||
Velocity v;
|
||||
};
|
||||
Reference in New Issue
Block a user