Let's make 16 games in C++: TETRIS
Why Stack Overflow recommends it
Stack Overflow users cite it as the reference project they are following when they hit SFML setup errors, ask what RenderWindow is, or try to port its C++ structs to Python.
Recommended by 0 people across 0 different months, 2018 to 2022.
What it is
A 4-minute screencast by FamTrinli that builds a working Tetris clone in C++ using the SFML library, as the first entry in a series on making 16 small games. It is a fast, code-forward walkthrough with downloadable source rather than a slow explanation of concepts.
What people said
Cites what a disgrace · 2018-03 · Stack Overflow · on “(SFML, Code::Blocks) "undefined reference to (...)" error upon Texture.importFromFile(...)”
I decided to try out what is depicted in this YouTube video [this video] (building a Tetris game with C++) (I mention the video for reference purposes). I have Code::Blocks 17.12. I installed SFML (GCC 4.9.2 TDM (SJLJ) - 32-bit) from their download page [LINK] and since "the compilers have to match 100%" I also installed TDM 4.9.2 (32-bit) from the link also provided on their download page (not before having run into errors from overlooking this detail to some extent), and set it as my compiler in Code::Blocks. I followed the tutorial on SFML page. I ran into a couple errors but managed to fix them (such as the one mentioned in the previous parenthetical remark... among others). Everything went f
Cites RoodKontjeAapje · 2020-06 · Stack Overflow · on “Beginner questions: how to use these obscure commands like 'RenderWindow' in C++”
This is kind of a beginner question, so please let me know if this is appropriate for this website and if not, where else I should be asking this. I've just gotten into the basics of C++ (pretty much what's being taught in this video from FreeCodeCamp: [LINK] ). Obviously, not everything there is to know is discussed in this tutorial and I've been running into a couple of things in other demonstration vids that I don't quite get yet. For example, this quick demonstration of how Tetris can be coded: [this video] ) you can see him use the command 'RenderWindow', which apparently creates a new window the size of his choice (320*480 pixels in this case). This doesn't seem to be a standard function in
Cites Draco Kinerek · 2022-10 · Stack Overflow · on “How do I make a struct point in python?”
I'm making a Tetris clone in Pygame based on [this video] and I need to know how to turn struct Point {int x,y;} a[4],b[4]; into Python from C++.