feat: add BadAppleScene

This commit is contained in:
2026-02-09 10:05:41 +08:00
parent e23edaa2e7
commit bdcaa8547d
12 changed files with 151395 additions and 3 deletions

View File

@@ -3,14 +3,16 @@
#include "core/Time.h"
#include "utils/Tools.h"
#include <iostream>
BoardRenderer::BoardRenderer(int WIDTH, int HEIGHT, SDL_Renderer* renderer, TextureManager* textureManager) :
m_Width(WIDTH),
m_Height(HEIGHT),
m_renderer(renderer),
m_textureManager(textureManager)
{
m_cellSize = HEIGHT / m_boardRow;
{
m_cellSize = std::min(WIDTH, HEIGHT) / std::min(m_boardRow, m_boardCOL);
m_area = getBoardArea();
}