• Advertisement
Sign in to follow this  

My first graphical game(Critique requested)

This topic is 3328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone. Well, recently I decided I wanted to learn OpenGL, and found some great video tutorials on OpenGL and GLUT over at www.videotutorialsrock.com . Anyway, after watching a few of them I wanted to see if I could use what I had learned and apply it to something on my own, and while I didn't even think I would get the basics to work, I ended up completely finishing the project in a fairly short amount of time. I have created, the ever original tetris clone. I know, difficult indeed, but it was my first project, and I'm really proud that I finished it and have it working. I wrote it in C++ using OpenGL and GLUT with Visual Studio 2005. You can download the source code here: Tetrology.zip I'm requesting that anyone with the time look over my code, try out the game, and give me some feedback on how I did for a first project. Let me know what I did right, what I did wrong, and what I can improve on. I appreciate any feedback. The only issue I know about is that for some reason the background texture doesn't load when I run the program on my eee pc, but it loads fine on my desktop, and I can't figure out why. I'm looking forward to hearing anything about how I did, good or bad. Thanks in advance! [Edited by - Chadwell on January 13, 2009 2:33:00 PM]

Share this post


Link to post
Share on other sites
Advertisement
FYI your hyperlink doesn't work :) forget an http:// somewhere..?

Anyway I'll download the source code and have a gander

Share this post


Link to post
Share on other sites
Quote:
Original post by m0nkfish
FYI your hyperlink doesn't work :) forget an http:// somewhere..?

Anyway I'll download the source code and have a gander


That is really odd, I edited my post like 20 times to fix the links, and I finally fixed em, but for some reason the website reverted to my original post and deleted all my edits. lol oh well, link should work now, and hopefully stay working.

I would very much appreciate it if you looked over my code, thanks a lot.

Share this post


Link to post
Share on other sites
afaik, you shouldnt use the underscore at the start of a variable name. it does work, but usually these are reserved for the compiler to use in the future.

Share this post


Link to post
Share on other sites
Hmm. Not sure why it isn't building. What errors did you get? You need to have GLUT downloaded and installed, along with opengl, and have them linked in to be able to compile it...

This is the website that I followed to set up the compiler.
Here

Try that and let me know.

Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by agm_ultimatex
I also get an error when trying to run the app. Either exe fails.


Oh I see. If you try to run the Exe it fails because it can't find the textures. If you go into the Tetrology folder and copy all of the bmp images into the debug folder the exe should work then. Sorry I didn't account for this as I was always running it from VC++

Share this post


Link to post
Share on other sites
Quote:
Original post by Cosmic R
afaik, you shouldnt use the underscore at the start of a variable name. it does work, but usually these are reserved for the compiler to use in the future.


Ah ok, thanks for the heads up. I just used it like that because the tutorial used it like that. Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Chadwell
Quote:
Original post by agm_ultimatex
I also get an error when trying to run the app. Either exe fails.


Oh I see. If you try to run the Exe it fails because it can't find the textures. If you go into the Tetrology folder and copy all of the bmp images into the debug folder the exe should work then. Sorry I didn't account for this as I was always running it from VC++


No worries. We forget things like that, and thats why theres beta tests. I put them in the folder, it still doesnt work. Error msg when I run: "C:\...\Tetrology v0.1.exe The application failed to start because its side by side configuration is incorrect".

I tried it in VStudio 2008 (after installing the GLUT library), I get an error that it cannot find the glut32.dll, which I did put in the system32 folder in C:\windows

Share this post


Link to post
Share on other sites
scratch that, added it to C:\Windows\SysWOW64 works fine now. The game seems to be pretty operational. I like the design of it over the SDL one and win32 one listed as a tutorial on this site. A bit smoother, looks a little nicer too.

Share this post


Link to post
Share on other sites
Copied the textures to the debug folder and it's working great now. Took me a few seconds to figure out how to rotate the pieces. Seems to work pretty well so far. If I were to nitpick, there were a couple times when the blocks separated by about a pixel. Not a big deal, just a small thing I noticed. Great work! Hope you keep adding to it!

Share this post


Link to post
Share on other sites
Quote:
Original post by agm_ultimatex
scratch that, added it to C:\Windows\SysWOW64 works fine now. The game seems to be pretty operational. I like the design of it over the SDL one and win32 one listed as a tutorial on this site. A bit smoother, looks a little nicer too.


I'm glad you got it working! Thanks for the good words!

Quote:
that dude over there
Copied the textures to the debug folder and it's working great now. Took me a few seconds to figure out how to rotate the pieces. Seems to work pretty well so far. If I were to nitpick, there were a couple times when the blocks separated by about a pixel. Not a big deal, just a small thing I noticed. Great work! Hope you keep adding to it!

Yeah, that is a texture issue that I couldn't quite figure out. The edges of the textures disappear and reappears oddly. But yeah, I noticed that too. Thanks for the input!

Share this post


Link to post
Share on other sites
Nicely done!

If you're up for it try to get it polished by fixing that slight separation in pixels.

Share this post


Link to post
Share on other sites
I tried it out and it works perfectly (after adding the textures and glut32.dll to the debug folder). It didn't feel like the difficulty was increasing over time, which is what I would expect from tetris. But I didn't play it for very long though, maybe to short to notice it getting more difficult.
But anyway, nice work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement