feat: added bird struct and movement, added pause feature, separated fps method to tick()

This commit is contained in:
DarthMooMancer
2025-09-03 21:02:45 -04:00
parent 2a728c5fda
commit e9571d65b4
8 changed files with 42 additions and 12 deletions
+7 -2
View File
@@ -1,15 +1,20 @@
#ifndef ELEMENTS_HPP
#define ELEMENTS_HPP
#include "globals.hpp"
struct Point {
Point();
Point() : m_row(0), m_col(0) {};
Point(int row, int col) : m_row(row), m_col(col) {};
int m_row;
int m_col;
};
struct Bird {
Point m_body;
Bird() : m_fly(false) {};
Point m_body {(ROW/2), 2};
bool m_fly;
void move();
};
#endif