feat: fruits, globals, input, snake, point, window
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef WINDOW_HPP
|
||||
#define WINDOW_HPP
|
||||
#include <array>
|
||||
#include "globals.hpp"
|
||||
|
||||
struct Window {
|
||||
std::array<std::array<char, COL>, ROW> m_board;
|
||||
// Initializes board with . for each value
|
||||
Window();
|
||||
|
||||
void draw_window();
|
||||
void clear_window();
|
||||
void tick(double frames_per_second);
|
||||
void update_loop(int fps);
|
||||
};
|
||||
|
||||
#endif // WINDOW_HPP
|
||||
Reference in New Issue
Block a user