feat: added bird, removed line in readme as it no longer applies
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
#define ELEMENTS_HPP
|
||||
|
||||
struct Point {
|
||||
Point();
|
||||
Point(int row, int col) : m_row(row), m_col(col) {};
|
||||
int m_row;
|
||||
int m_col;
|
||||
};
|
||||
|
||||
struct Bird {
|
||||
|
||||
Point m_body;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
#ifndef INPUT_HPP
|
||||
#define INPUT_HPP
|
||||
// #include "elements.hpp"
|
||||
#include "elements.hpp"
|
||||
|
||||
struct Input {
|
||||
int _getch = 0;
|
||||
void get_input(bool &running);
|
||||
void get_input(bool &running, Bird &bird);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -3,11 +3,11 @@
|
||||
|
||||
#include <array>
|
||||
#include "globals.hpp"
|
||||
// #include "elements.hpp"
|
||||
#include "elements.hpp"
|
||||
|
||||
struct Window {
|
||||
std::array<std::array<char, COL>, ROW> m_board = {};
|
||||
void update_display();
|
||||
void update_display(Bird &bird);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user