Original Post
Hi all,
First of all this is my first post on this site - but not my first visit. I love this place!
Now I'm teaching myself how to program games. I taught myself C++ (dummies guides, online tutorials and the like) and have decided to start with my first game - a tetris clone.
Now I've gotten to a point where the blocks fall, detect collisions and lock into place (albeit in a not so pretty way) but after you drop a block on the central point, or you've played for a minute some really funky stuff hits the rendered fan.
Basically all of a sudden blocks appear at the top. Your piece can't move - but spasmodically rotates to new shapes. And the blocks at the bottom seem to morph as if they're trying out for a remake of "The Blob".
Could I post the code here and have someone help with the debugging?
Unfortunately because this is my first game I haven't used classes (totally my bad) so it may be a little harder to understand, but any help would be appreciated. I don't want to move onto any other projects until this one is nailed.
Thanks all,
Mike
First of all this is my first post on this site - but not my first visit. I love this place!
Now I'm teaching myself how to program games. I taught myself C++ (dummies guides, online tutorials and the like) and have decided to start with my first game - a tetris clone.
Now I've gotten to a point where the blocks fall, detect collisions and lock into place (albeit in a not so pretty way) but after you drop a block on the central point, or you've played for a minute some really funky stuff hits the rendered fan.
Basically all of a sudden blocks appear at the top. Your piece can't move - but spasmodically rotates to new shapes. And the blocks at the bottom seem to morph as if they're trying out for a remake of "The Blob".
Could I post the code here and have someone help with the debugging?
Unfortunately because this is my first game I haven't used classes (totally my bad) so it may be a little harder to understand, but any help would be appreciated. I don't want to move onto any other projects until this one is nailed.
Thanks all,
Mike