Please understand that I am very new to programing so please go easy on me if I'm asking stupid questions. I am using Dev-C++ 4.9.9.2 and I have been through a range of C++ tutorials. The first 'significant' project that I am trying is a tetris tutorial by Evil_Greven (posted on www.gamedev.net). The tutorial gives you the code and talks you through why stuff is the way it is. You then have to create a bimap in MSPaint and insert that, after which the game is supposed to work. Evidently the tutorial does work because everybody raves about it...
My plan is to learn the code for the tetris game inside out by playing with it but I just cannot get it to work in the first place. I have spent a fair amount of time on this and am getting reasonably frustrated with it. The program complies fine and runs but all I am getting is a windows screen with a black background and no graphics.
My question is whether there is something that I should be doing to my compiler to get this to work or should I be downloading anything else? I have not made any adjustments to it since installing it.
Any help will be much appreciated.
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You spent a lot of time describing why you are trying to compile something and all, but
you did not give us anything that we can work with to duplicate what you are seeing,
which is the BEST way to get help.
Start by posting your Basic 3 - they are covered in the thread titled "Please Read
Before Posting a Question" - this will give us the ability to try and do what you
are doing, the way you are doing it.
Wayne
p.s. I will tell you this - please don't take this the wrong way - but I have
NEVER seen anyone learn programming by compiling someone elses examples. It
may be fun at times, but programming is a process - not a set of magic words.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the future, post an actual link to the tutorial and not just a vague reference.
That said, a google for "c++ tetris example bmp" apparently turned up the tutorial in question as well as a site with all the source, a sample BMP used by the game, and further instructions.
Soma
Hint: I've just told you everything you needed. Read it carefully.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I hope this is what you needed. I don't feel as though I have given you much more though. If there is something else I can provide please let me know. In terms of the code I have been through it very carefully and it is the same as the code on the tutorial.
I absolutely agree that copying out a tetris tutorial will not transform me into an expert computer programmer any more than tracing the Mona Lisa would make me a painter but (and I perhaps could have been a little clearer) I simply propose to use that code as base from which I can experiement. The idea is that it is a interesting way of allowing me to learn how the different components of a program interact and a way of getting a feel for what a fully functioning program looks like. I find it hard to learn things without a fairly clear idea of where I am going. I still fully intend going through the proceess of developing my own game programs and in fact am very excited at the prospect of eventually being able to do that.
Soma
Thanks for your hint. I did the google you suggested but I got so many results that I was not sure which site was the one that had the additional instructions. However, I don't think (emphasise think) that my code or my bitmap is the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The hint was not a hint, but here is a hint; Clifford says I disguise my help in terse code, bad prose, and worse poetry, and this is true. All you need to know really is in my post; you don't even need to google.
Soma
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am sure you are trying to help but I don't have a clue what you are talking about.
I have been through the forum for the tutorial several times over and I have read the parts that relate to black screen problems. These are largely concerned with people who had not even bothered to create the bitmap or had put it in the wrong place. I have also found a site with the sample bitmap but that does not help me either.
I think that you might be mistaking 'newbieness' for laziness (which would be unfair).
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not unfair. True. You are lazy. And a fucking idiotic moron. Too lazy and stupid to use google.
What kind of worthless shit, when asked for information, and after admitting he was a newbie, decides he doesn't have to post it. Hey moron - the compile log that whiner Wayne ask's for all the time is good for run time issues too - but you are too fucking clueless to know that, and so arragant you don't know you don't know, and shoot off your stupid fucking mouth and prove it.
anon2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"I think that you might be mistaking 'newbieness' for laziness (which would be unfair)."
O_o
Okay. I'll bite, but I'll probably regret it. Prove it!
As 'anon2' (I really wish he'd pick another name) said, posting your "Basic 3" makes us all very happy. In fact, that's the only way I get sexual release. I really need to see the compile log.
Also, as an exercise, describe in detail the folder layout where you have your project, any modifications you've made to the source, and provide a link to both of the relevant sites (for anyone else).
Soma
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please understand that I am very new to programing so please go easy on me if I'm asking stupid questions. I am using Dev-C++ 4.9.9.2 and I have been through a range of C++ tutorials. The first 'significant' project that I am trying is a tetris tutorial by Evil_Greven (posted on www.gamedev.net). The tutorial gives you the code and talks you through why stuff is the way it is. You then have to create a bimap in MSPaint and insert that, after which the game is supposed to work. Evidently the tutorial does work because everybody raves about it...
My plan is to learn the code for the tetris game inside out by playing with it but I just cannot get it to work in the first place. I have spent a fair amount of time on this and am getting reasonably frustrated with it. The program complies fine and runs but all I am getting is a windows screen with a black background and no graphics.
My question is whether there is something that I should be doing to my compiler to get this to work or should I be downloading anything else? I have not made any adjustments to it since installing it.
Any help will be much appreciated.
Simon
Simon,
You spent a lot of time describing why you are trying to compile something and all, but
you did not give us anything that we can work with to duplicate what you are seeing,
which is the BEST way to get help.
Start by posting your Basic 3 - they are covered in the thread titled "Please Read
Before Posting a Question" - this will give us the ability to try and do what you
are doing, the way you are doing it.
Wayne
p.s. I will tell you this - please don't take this the wrong way - but I have
NEVER seen anyone learn programming by compiling someone elses examples. It
may be fun at times, but programming is a process - not a set of magic words.
In the future, post an actual link to the tutorial and not just a vague reference.
That said, a google for "c++ tetris example bmp" apparently turned up the tutorial in question as well as a site with all the source, a sample BMP used by the game, and further instructions.
Soma
Hint: I've just told you everything you needed. Read it carefully.
Wayne
In terms of the Basic 3:
1.My O/S is Windows XP. I can't realy post the code becuase it is so large.
2.The code can be found at http://www.gamedev.net/community/forums/topic.asp?topic_id=192483 though.
3.I am not having any problems compiling so there is nothing to post.
I hope this is what you needed. I don't feel as though I have given you much more though. If there is something else I can provide please let me know. In terms of the code I have been through it very carefully and it is the same as the code on the tutorial.
I absolutely agree that copying out a tetris tutorial will not transform me into an expert computer programmer any more than tracing the Mona Lisa would make me a painter but (and I perhaps could have been a little clearer) I simply propose to use that code as base from which I can experiement. The idea is that it is a interesting way of allowing me to learn how the different components of a program interact and a way of getting a feel for what a fully functioning program looks like. I find it hard to learn things without a fairly clear idea of where I am going. I still fully intend going through the proceess of developing my own game programs and in fact am very excited at the prospect of eventually being able to do that.
Soma
Thanks for your hint. I did the google you suggested but I got so many results that I was not sure which site was the one that had the additional instructions. However, I don't think (emphasise think) that my code or my bitmap is the problem.
sigh
"I did the [...] additional instructions."
I wanted to know if you could fish for yourself. It was only a test... you failed.
The solution to the "black screen" problem is presented on the forum, in a later page, and the link returned by google is one of the top ten.
I have not interest of discussing this particular matter further. I really do suggest you actually look.
Soma
"Thanks for your hint."
The hint was not a hint, but here is a hint; Clifford says I disguise my help in terse code, bad prose, and worse poetry, and this is true. All you need to know really is in my post; you don't even need to google.
Soma
This is going to be fun. Wayne is going to blow up big time at this retard.
He hates it when fools who are too stupid to do even simple programmming tell him they don't need to post something in his treasured "Basic 3".
Yes, he is a retard. A worthless luser, who wastes the time of others, whimpering "hold my hand!" all the time.
anon2
Soma
I am sure you are trying to help but I don't have a clue what you are talking about.
I have been through the forum for the tutorial several times over and I have read the parts that relate to black screen problems. These are largely concerned with people who had not even bothered to create the bitmap or had put it in the wrong place. I have also found a site with the sample bitmap but that does not help me either.
I think that you might be mistaking 'newbieness' for laziness (which would be unfair).
Simon
Not unfair. True. You are lazy. And a fucking idiotic moron. Too lazy and stupid to use google.
What kind of worthless shit, when asked for information, and after admitting he was a newbie, decides he doesn't have to post it. Hey moron - the compile log that whiner Wayne ask's for all the time is good for run time issues too - but you are too fucking clueless to know that, and so arragant you don't know you don't know, and shoot off your stupid fucking mouth and prove it.
anon2
"I think that you might be mistaking 'newbieness' for laziness (which would be unfair)."
O_o
Okay. I'll bite, but I'll probably regret it. Prove it!
As 'anon2' (I really wish he'd pick another name) said, posting your "Basic 3" makes us all very happy. In fact, that's the only way I get sexual release. I really need to see the compile log.
Also, as an exercise, describe in detail the folder layout where you have your project, any modifications you've made to the source, and provide a link to both of the relevant sites (for anyone else).
Soma