fix: blocks have proper collision and can be broken. Basically done.

This commit is contained in:
DarthMooMancer
2025-09-01 05:35:54 -04:00
parent 702be0363f
commit f1e32089ae
6 changed files with 56 additions and 22 deletions
+3 -3
View File
@@ -1,8 +1,6 @@
#ifndef ELEMENTS_HPP
#define ELEMENTS_HPP
#include <string>
struct Point {
Point();
int m_row;
@@ -32,10 +30,12 @@ struct Paddle {
struct Block {
Block(char symbol, int row, int col);
int _size;
bool _deleted;
char m_symbol;
Point m_nodes[3];
void get_pos();
void check_collision(Ball &ball);
void check_collision(Ball &ball, int &blocks_left);
void _delete();
};
#endif