Tetris: dark background, make window resizable
This commit is contained in:
parent
3cc5c4192a
commit
393b975dbe
@ -401,7 +401,7 @@ std::vector< std::shared_ptr< TetrisPiece > ( * )(
|
||||
|
||||
void addStuff( SDLPP::Scene &scene, std::shared_ptr< SDLPP::Renderer > &r ) {
|
||||
auto bg = std::make_shared< SDLPP::RectangleRender >( 0, 0, 10, 10, r,
|
||||
"#101090FF", true );
|
||||
"#222222", true );
|
||||
bg->setPermanent();
|
||||
scene.addObject( bg );
|
||||
auto left_barrier = std::make_shared< SDLPP::RectangleRender >(
|
||||
@ -975,6 +975,7 @@ void doInputGameOver() {
|
||||
int main() {
|
||||
SDLPP::init();
|
||||
SDLPP::Window w( "Tetris clone!" );
|
||||
w.setResizable(true);
|
||||
auto renderer = std::make_shared< SDLPP::Renderer >( w );
|
||||
active_renderer = renderer;
|
||||
renderer->setBlendMode( SDL_BLENDMODE_BLEND );
|
||||
|
Loading…
Reference in New Issue
Block a user