sync line added in cooperate mode
This commit is contained in:
@ -69,11 +69,11 @@ public:
|
||||
void shutdown();
|
||||
|
||||
// Start line clear effect for the specified rows
|
||||
void startLineClear(const std::vector<int>& rows, int gridX, int gridY, int blockSize, int gridCols = Game::COLS);
|
||||
void startLineClear(const std::vector<int>& rows, int gridX, int gridY, int blockSize, int gridCols = Game::COLS, int gapPx = 0, int gapAfterCol = 0);
|
||||
|
||||
// Update and render the effect
|
||||
bool update(float deltaTime); // Returns true if effect is complete
|
||||
void render(SDL_Renderer* renderer, SDL_Texture* blocksTex, int gridX, int gridY, int blockSize);
|
||||
void render(SDL_Renderer* renderer, SDL_Texture* blocksTex, int gridX, int gridY, int blockSize, int gapPx = 0, int gapAfterCol = 0);
|
||||
float getRowDropOffset(int row) const;
|
||||
|
||||
// Audio
|
||||
@ -121,4 +121,6 @@ private:
|
||||
float dropProgress = 0.0f;
|
||||
int dropBlockSize = 0;
|
||||
int effectGridCols = Game::COLS;
|
||||
int effectGapPx = 0;
|
||||
int effectGapAfterCol = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user