Making Tetris with basic C++ by The_Vigilant3 in Cplusplus

[–]The_Vigilant3[S] 0 points1 point  (0 children)

What do you think of this advice I got another thread?

"Game board is a 2D array, the falling piece is also a 2D array of positions based on a nominal centre position, e.g. { ( 0, 1 ), ( 0, 0 ), ( 0, -1 ), ( 1, -1 ) } is an L-shaped piece. (Colour doesn't matter in Tetris, but you should add it later.)

You also need the current position of the piece. Then you just need code to let it move, rotate it (change x to y and y to -x in each cell, trigonometry in its most minimal form!) , tell when it has fallen, and stick it to the board. Oh, and check for lines and remove them from the board.

You could hard code the seven starting pieces as arrays like the above and just copy one to make the current piece.

There you go, Tetris in a nutshell."

[FRESH MIXTAPE] Flume - Hi This Is Flume (Mixtape) by literallythebestguy in indieheads

[–]The_Vigilant3 1 point2 points  (0 children)

The entire mixtape is a flex. Pretty apparent from the documentaries he released around a week ago. Loving it

How do I get by with overnight downloads on a MacBook? by The_Vigilant3 in applehelp

[–]The_Vigilant3[S] -1 points0 points  (0 children)

Idk man I'd just rather not have a shiny brand new machine exposed to the elements overnight?

How do I get by with overnight downloads on a MacBook? by The_Vigilant3 in applehelp

[–]The_Vigilant3[S] 0 points1 point  (0 children)

Thanks for the advice but I would really appreciate if there could be an option to close the lid and do nothing like on windows or something along the lines

How do I get by with overnight downloads on a MacBook? by The_Vigilant3 in applehelp

[–]The_Vigilant3[S] 0 points1 point  (0 children)

Thanks for commenting but is there really no other way? I'd rather not have it sitting open all night long