first commit

This commit is contained in:
2026-06-05 11:45:04 +03:00
commit b457544071
29 changed files with 1725 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include "Engine.h"
#include "GameField.h"
#include "IBlock.h"
class Tetris : public Engine
{
private:
GameField m_GameField;
Figure* m_Figure = nullptr;
bool m_End = false;
const size_t m_Width = 14;
const size_t m_Height = 26;
int m_Score = 0;
public:
Tetris();
~Tetris() override;
protected:
bool end() const override;
void on_button_press(int button) override;
void update(int dt) override;
void render(PaintDevice& paintDevice) override;
};