TETRIS: use new sdlpp library

This commit is contained in:
2020-11-21 20:58:52 +01:00
parent a67e9e5b1a
commit 90879a3f21
11 changed files with 635 additions and 507 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
#ifndef TETRIS_FUNCTIONS_H
#define TETRIS_FUNCTIONS_H
#include "../sdlpp.hpp"
#include "../sdlpp/sdlpp.hpp"
#include "custom_classes.hpp"
void moveThem( std::shared_ptr< SDLPP::Scene > scene, int ticks );
bool validPos(SDLPP::Scene &scene, std::shared_ptr<TetrisPiece> piece);
void updateShadow(SDLPP::Scene &scene);
bool validPos( SDLPP::Scene &scene, std::shared_ptr< TetrisPiece > piece );
void updateShadow( SDLPP::Scene &scene );
void quitGame();
void resetGame();
bool checkRotation( std::shared_ptr<TetrisPiece> piece, SDLPP::Scene &scene );
bool checkRotation( std::shared_ptr< TetrisPiece > piece, SDLPP::Scene &scene );
std::shared_ptr< TetrisPiece >
tetrisBrick( std::shared_ptr< SDLPP::Renderer > renderer,