|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
Show your games to OCN!
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
Overclocker in Training
|
If anybody has programmed a little interactive game that they'd like to show go ahead and post it here. You can include a source code too. An executable would be nice as well.
I'm curious to see what other people have made. Lets see if this thread takes off :P Here is a simple guessing game i made Code:
//guessing game
#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>
#include <windows.h>
#include <winuser.h>
void instruct(void); //instructions function
void game(void); //game
void close(void); //close window
int
main(void)
{
game();
return(0);
}
void
instruct()
{
cout << "Welcome to the GUESSING GAME!\n\n";
}
void
game()
{
int random, //locals
guess;
char play;
random = 1 + rand() % 1000;
guess = 0;
while(guess != random){
//initial output
cout << "\n\nI have a number between 1 and 1000\n";
cout << "Can you guess my number nub?\n";
cout << "Please type your first guess: ";
cin >> guess;
cout << endl;
if(guess == random){
cout << "Excellent! You guessed the right number hacker!\n";
cout << "Would you like to play again? (y or n)\n";
cin >> play;
if(play == 'y')
game();
else if(play == 'n')
close();
}
else if(guess > random){
cout << "You guessed to high! Try Again\n";
}
else if(guess < random){
cout << "You guessed to low! Try Again\n\n";
}
}
}
void
close()
{
HWND windowhandle;
SetConsoleTitle("Program");
windowhandle=FindWindow(NULL,"Program");
SendMessage (windowhandle, WM_CLOSE, 0, 0);
}
|
||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Windows Wrangler
|
I like your game. Gonna compile it in a sec.
I'm not much of a game coder. I'm more of a "they don't make a kind of app I need so I'll make it myself" coder.
__________________
Je parle un peu le français, mais je préfère parler l'anglais. Parlez-vous le français aussi? For you English speakers: ">" - greater than; "<" - less than "there" - Hey, look over there. "their" - I love their Mustang. "they're" - They're so lucky!
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||||
|
Overclocker in Training
|
thanks man. im more of a whatever programmer.
|
||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
The Project Keeper
|
GM6 doesn't work on Vista and GM7 i have no key for. So naturally i got rid of all my source codes. I did have quite a few games though pretty decent too.
__________________
|
|||||||||||||
|
|
|
|
#5 (permalink) | ||||||||||||
|
Overclocker in Training
|
have an executable for them? i'd love to see them.
|
||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
Sup'
Join Date: May 2005
Location: Charlottesville, VA
Posts: 2,846
Rep: 428
![]() ![]() ![]() ![]() ![]() Unique Rep: 294
Trader Rating: 17
|
One of my friends made a cool game where you get coins with an airplane or something, I'll post it tomorrow.
__________________
Crucial Ballistix Club ![]() My First Guide: The Perfectionist's Guide To Ripping Audio CD's Check This Out (Intel Users Only): The Definitive Answer To: RAM Overclocking: Higher Speed vs. Tighter Timings
|
|||||||||||||
|
|
|
|
#7 (permalink) | |||||||||||||
|
The Project Keeper
|
I doubt my 3 or 4 year old file hosting account's files are still there. And my laptop's HDD crashed, hard. Had to 0 fill as well as double reformat before i could finally install XP. (I didn't have any desktop at the time and no big games worked on it which propelled me to make my own since it wouldn't need any real power, in the end it lead to my hobby of programming which of course now i am far more proficient in higher languages.)
__________________
|
|||||||||||||
|
|
|
|
#8 (permalink) | ||||||||||||
|
Overclocker in Training
|
oh well, that sucks dude. can't wait for this airplane game though. im curious
|
||||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||||||
|
PC Gamer
|
Man i need too learn that stuff.
|
|||||||||||||
|
|
|
|
|
#10 (permalink) | |||||||||||||
|
The Project Keeper
|
When XNA becomes compatible with Visual Studio 2008 (currently only 2005 compatible) and i figure out how to use it's estranged system i might go back into working on games again.
__________________
|
|||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|