Advertisement

Code review - Tetris clone

Started by September 06, 2013 11:20 AM
2 comments, last by fir 11 years, 5 months ago

First of all, hello gamedev.net community,

I just signed up here to get some general advice regarding programming questions and since I'm just a beginner, there are many things I can learn from more experienced programmers around here. I've recently coded a tetris clone and while it is functional, the code design is far from being good. That's why I would like to hear some suggestions on what I could have done better/more efficiently/with less cluttered code/etc..

I'm not quite sure, whether I should just put the code into this post; if so, I'll edit it later, but for now I have uploaded the project to my Skydrive. Here's the link: http://sdrv.ms/1dM0h1Q

Feel free to point out things, just don't be too harsh on me, even though I know the code is not very good. I'm looking forward to reading your comments.

The project files don't actually contain the source code for the game. You need to post the header and cpp files to show everyone the sources.

Advertisement

I've corrected my post since the wording might have been a bit misleading; I'm aware that VS project files do not contain source code. It's not the project files on my Skydrive, it's the whole project folder containing all source files.

I am tu busy to read and comment but I can say that I dislike such kind of comments

/// <summary>
/// Updates the position of all blocks above the line that has been cleared.
/// </summary>
/// <param name="clearedY">The Y-coordinate of the cleared line.</param>
public void UpdateLandedPositions(float clearedY)
{

c# for me personally was always depressing

This topic is closed to new replies.

Advertisement