feat: Added ball and collision to paddles. Added a score system and timer for game. May be done in one day.
This commit is contained in:
+2
-4
@@ -6,9 +6,7 @@
|
||||
#include "elements.hpp"
|
||||
|
||||
struct Window {
|
||||
// Window();
|
||||
std::array<std::array<char, COL>, ROW> m_board;
|
||||
// void update_display();
|
||||
void update_display(Paddle &a, Paddle &b);
|
||||
std::array<std::array<char, COL>, ROW> m_board = {};
|
||||
void update_display(Paddle &left, Paddle &right, Ball &ball, int &time);
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user