that was awesome. awe inspiring.
good job.
Type: Posts; User: SmashBro
that was awesome. awe inspiring.
good job.
I've been learning SDL for the past few weeks, and I like it a lot. I made a program in which you can shoot a spaceman around on Mars's surface. I then wondered if I could make it a screen saver. So...
I'm trying to make my first real graphical C++ program by using SDL in Visual C++. One problem I have is that it's kind of a lunar lander type of thing, so I need to rotate the ship freely. I could...
Okay I think I know what you want now.
Just make gravity a negative number. We'll call it grav.
If you shoot something straight up into the air and it gets to 300 meters exactly, then at 300...
Use getline.
source.getline(placetooutputto,maxnumberofchars,endingchar);
so you might use b_file.getline(str,100,'/n');
But of course you would want to put a /n at the end of the string. or...
I really have no idea what you're asking. But remember that the value of gravity is not a velocity but an accelleration.
grav = -9.8 ///it's a constant. that's the ACTUAL gravitational constant...
The key is to create a power function, check the closeness to one, and then at 10 to the -whatever, depending on how many didits are past the decimal point.
Well, it takes hard work, but eventually I was able to get at about Quake III quality ;)
If I am not able to get into game programming, I'll be in another profession. I'm not doing any other type of programming. Haven't you ever seen Office Space??? =P
I have a friend. His name is ASCII character code number 219. He helps me create blocky, strange looking graphics in console mode =D. An example would be in the thread I posted below--
...
The tail is supposed to stop while the snake is growing. :)
Hey! After many months of toils and hardships, I have completed a fully realized Nibbles game, with 9 levels, bonus apples, a high score list, and more!! Please try it out and tell me what you think!...
wait, actually, I got that DXBall thing wrong. In that game, the angle of the ball depends on where the ball hits on the paddle, but not in the way I described. If the ball hits the center of the...
Well, most pong game physics can be pretty unrealistic... =P
The simplest thing to think about is this: You have its horizontal speed and direction and its vertical speed and direction. They...
whoops, forgot the file...
By popular demand (I think three people asked for it =P) I decided to take some time and put in a computer player. The only weird thing is that it sticks to walls, but I think that has advantages and...
Okay. I'm a senior in high school. I just started C++ programming this year, in an independant study class at my small high school. You can see my first "real" game below, Snake Attack, which is as...
Hello. I'm just a beginner C++ programmer, and this is one of my first games. It's just a Tron clone. Tell me what you think! The source code is included, and it's fairly messy, but it's also...
I am a new C++ programmer. I started out using a Borland compiler, which I found worked rather well. I just made a few simple things, including a nice ASCII version of tic-tack-toe with computer...
Hey! I just got this great idea to make things easier for myself and other former QBasic proggies. I made a function making use of kbhit() and getch() that just returns the ASCII code of whatever is...
thank you! I knew about kbhit(), but i was confused, at first I thought it was just like QBasic's INKEY$, but now I see that it is simply either zero or nonzero... and getch()... well, that still...
I am an amateur programmer fluent in QBasic and trying to convert to C/C++. In QBasic there is something called INKEY$ which returns the code of whatever is being pressed on the keyboard at that...