New Posts  All Forums:Forum Nav:

Show your games to OCN!

post #1 of 10
Thread Starter 
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

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!\
\
";
}

void
game()
{
int random, //locals
guess;


char play;
random = 1 + rand() % 1000;

guess = 0;
while(guess != random){

//initial output
cout << "\
\
I have a number between 1 and 1000\
";
cout << "Can you guess my number nub?\
";
cout << "Please type your first guess: ";
cin >> guess;
cout << endl;

if(guess == random){
cout << "Excellent! You guessed the right number hacker!\
";
cout << "Would you like to play again? (y or n)\
";
cin >> play;

if(play == 'y')
game();
else if(play == 'n')
close();
}
else if(guess > random){

cout << "You guessed to high! Try Again\
";

}
else if(guess < random){

cout << "You guessed to low! Try Again\
\
";

}

}

}


void 
close() 
{
HWND windowhandle;
SetConsoleTitle("Program");
windowhandle=FindWindow(NULL,"Program");
SendMessage (windowhandle, WM_CLOSE, 0, 0);
}
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
post #2 of 10
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.
Cataclysm
(20 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 GA-EP45-UD3P Rev. 1.0 Sapphire 4850 4x 2GB DDR2-1066 
Hard DriveHard DriveOptical DriveCooling
WD1600AAJS Random IDE Sony DVD Burner Tuniq Tower 120 
CoolingCoolingCoolingOS
6x 120mm Scythe SY1225SL12SH Fans Thermalright T-RAD2 2x 92mm Scythe DFS922512M-PWM Fans Windows 7 Ultimate x64 SP1 
MonitorMonitorKeyboardPower
Acer 19" @ 1400x900 Sceptre 19" @ 1280x1024 Cherry G81-7000LPAUS-2 (MY Switches) Corsair 650TX 
CaseMouseMouse PadAudio
Antec 900 Razer Diamondback 3G A black one with a cat in a hammock Asus Xonar D1 
  hide details  
Reply
Cataclysm
(20 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 GA-EP45-UD3P Rev. 1.0 Sapphire 4850 4x 2GB DDR2-1066 
Hard DriveHard DriveOptical DriveCooling
WD1600AAJS Random IDE Sony DVD Burner Tuniq Tower 120 
CoolingCoolingCoolingOS
6x 120mm Scythe SY1225SL12SH Fans Thermalright T-RAD2 2x 92mm Scythe DFS922512M-PWM Fans Windows 7 Ultimate x64 SP1 
MonitorMonitorKeyboardPower
Acer 19" @ 1400x900 Sceptre 19" @ 1280x1024 Cherry G81-7000LPAUS-2 (MY Switches) Corsair 650TX 
CaseMouseMouse PadAudio
Antec 900 Razer Diamondback 3G A black one with a cat in a hammock Asus Xonar D1 
  hide details  
Reply
post #3 of 10
Thread Starter 
thanks man. im more of a whatever programmer.
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
post #4 of 10
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.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #5 of 10
Thread Starter 
have an executable for them? i'd love to see them.
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
post #6 of 10
One of my friends made a cool game where you get coins with an airplane or something, I'll post it tomorrow.
X99 Glory Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5930K @ 4.4GHz Asus Rampage V Extreme MSI Lightning 290X Crucial Ballistix Sport 16GB (4 x 4GB) DDR4-2400 
Hard DriveOptical DriveCoolingOS
Hitachi Deskstar NAS 4TB Pioneer BDR-2209 Blu-Ray/DVD/CD Writer Noctua NH-D14 SE2011 Windows 8.1 Pro 
MonitorKeyboardPowerCase
Dell 2407WFP Rev. A02 Ducky Legend Black w/ White Backlit Vortex Caps EVGA SuperNOVA 1000 P2 1000W Phanteks Enthoo Primo White 
MouseMouse PadAudio
Logitech G502 Proteus Core Func. Surface 1030 Asus Xonar Essence STX 
  hide details  
Reply
X99 Glory Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel 5930K @ 4.4GHz Asus Rampage V Extreme MSI Lightning 290X Crucial Ballistix Sport 16GB (4 x 4GB) DDR4-2400 
Hard DriveOptical DriveCoolingOS
Hitachi Deskstar NAS 4TB Pioneer BDR-2209 Blu-Ray/DVD/CD Writer Noctua NH-D14 SE2011 Windows 8.1 Pro 
MonitorKeyboardPowerCase
Dell 2407WFP Rev. A02 Ducky Legend Black w/ White Backlit Vortex Caps EVGA SuperNOVA 1000 P2 1000W Phanteks Enthoo Primo White 
MouseMouse PadAudio
Logitech G502 Proteus Core Func. Surface 1030 Asus Xonar Essence STX 
  hide details  
Reply
post #7 of 10
Quote:
Originally Posted by .dp-BarackObama View Post
have an executable for them? i'd love to see them.
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.)
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #8 of 10
Thread Starter 
oh well, that sucks dude. can't wait for this airplane game though. im curious
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
HELENKELLER
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 @ 2.4 eVGA 780I EVGA 8800GTS 4 GB OCZ SLI RDY 
Hard DriveOSKeyboardPower
400GB WD/Seagate Internal / 500 WD External Vista X64 Logitech MX5000 Ultra X2 750watt 
CaseMouseMouse Pad
Ultra Aluminus Mid-Tower Logitech MX5000 GO Army 
  hide details  
Reply
post #9 of 10
Man i need too learn that stuff.
post #10 of 10
Quote:
Originally Posted by .dp-BarackObama View Post
oh well, that sucks dude. can't wait for this airplane game though. im curious
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.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming