mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
feat: add BadAppleScene
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user