Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.
Moderator: Coders of Rage
dinosaur sniper
Post
by dinosaur sniper » Thu Dec 09, 2004 3:01 pm
Gyro and I have to create a hangman game in C programming class. We cannot use SDL. Here is the hanging noose and stand.
Code: Select all
___________________________
| |
| ______________________ |
| | | |
|__| | |
|| | |
|| | |
|| | |
|| | |
( _) | |
( _) | |
( _) | |
// \\ | |
// \\ | |
|| || | |
|| || | |
\\ // | |
\====/ | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
_________________________| |___________________
| HANGMAN 1.0 |
------------------------------------------------
Wutai
Chaos Rift God
Posts: 1510 Joined: Sat May 29, 2004 2:30 am
Location: Currently incarcerated.
Post
by Wutai » Thu Dec 09, 2004 3:43 pm
Your teacher is encouraging you to draw a picture of a man hanging, dead, from a rope?!?!?!??!?!?!?!?!??
This is a joke about unfunny jokes. And bad use of irony.
Falco Girgis
Elysian Shadows Team
Posts: 10294 Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:
Post
by Falco Girgis » Thu Dec 09, 2004 4:09 pm
Actually, after class dinosaur and I talked with her and he got her to let us use SDL!
This class project will be flickin' awesome. Everybody else will be using their DOS console and we'll bust out t3h SDL. It'd be great to bring in the Dreamcast even.
We could have like David bowie background music and stuff. He can do the art, and if you lose, the guy could explode into blood from the blood engine!
thunder_blaze
Post
by thunder_blaze » Thu Dec 09, 2004 6:23 pm
I made something like that on the vidio game I made called Jackass: The Game. It is a better game than the first game I made. He jumps off of a building into a pool & misses and falls into a rope and kills hisself. I had to find a way to stop making the game.
Falco Girgis
Elysian Shadows Team
Posts: 10294 Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:
Post
by Falco Girgis » Thu Dec 09, 2004 6:26 pm
You mean a game an editor made for you...
We're about programming, not using game makers.
JS Lemming
Game Developer
Posts: 2383 Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON
Post
by JS Lemming » Thu Dec 09, 2004 9:10 pm
thunder_blaze, it sounds like you made a short cutscene not a game. Besides, all those who use editors better convert or face the most evil of evils.
BTW, do you guys know how to program the actuall hang man game? Or is the teacher going to teach you how or something?
Last edited by
JS Lemming on Thu Dec 09, 2004 9:10 pm, edited 1 time in total.
Small girl at the harbor wrote: Look Brandon, that crab's got ham!
Falco Girgis
Elysian Shadows Team
Posts: 10294 Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:
Post
by Falco Girgis » Thu Dec 09, 2004 9:13 pm
This is our final project. She isn't going to show us crap and we only get to ask her a total of 3 questions.
She's really smart, but since this is in SDL, and possibly Dreamcast, she isn't going to be able to help anyone!
dinosaur sniper
Post
by dinosaur sniper » Tue Dec 14, 2004 2:32 pm
Code: Select all
void hg0()
{
printf(" ___________________________\n | | \n | ______________________ | \n | | | | \n |__| | | \n || | | \n || | |\n || | |\n || | | \n ( _) | | \n ( _) | | \n ( _) | | \n // \\\\ | | \n // \\\\ | | \n || || | | \n || || | | \n \\\\ // | | \n \\====/ | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n _________________________| |___________________\n | GNAHNAM | \n ------------------------------------------------\n");
}
void hg1()
{
printf(" ___________________________\n | | \n | ______________________ | \n | | | | \n |__| | | \n || | | \n || | |\n || | |\n || | | \n || | | \n || | | \n || | | \n ( _) | | \n ( _) | | \n /-----\\ | | \n |__ __ | | | \n ||0| |0|| | | \n |``__`` | | |\n \\_____/ | |\n |_| | |\n | | \n | |\n | | \n | | \n | |\n | |\n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n | | \n _________________________| |___________________\n | GNAHNAM | \n ------------------------------------------------\n");
}
void hg2()
{
printf(" ___________________________\n");
printf(" | |\n");
printf(" | ______________________ |\n");
printf(" | | | | \n");
printf(" |__| | | \n");
printf(" || | | \n");
printf(" || | |\n");
printf(" || | |\n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" ( _) | | \n");
printf(" ( _) | | \n");
printf(" /-----\\ | | \n");
printf(" |__ __ | | | \n");
printf(" ||o| |0|| | | \n");
printf(" |``__`` | | |\n");
printf(" \\_____/ | |\n");
printf(" | | | |\n");
printf(" | | | | \n");
printf(" | | | | \n");
printf(" | | | | \n");
printf(" | | | |\n");
printf(" | | | |\n");
printf(" | | | | \n");
printf(" \\_/ | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | |\n");
printf(" | |\n");
printf(" _________________________| |___________________\n");
printf(" | GNAHNAM | \n");
printf(" ------------------------------------------------\n\n");
}
void hg3()
{
printf(" ___________________________\n");
printf(" | |\n");
printf(" | ______________________ |\n");
printf(" | | | | \n");
printf(" |__| | | \n");
printf(" || | | \n");
printf(" || | |\n");
printf(" || | |\n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" ( _) | | \n");
printf(" ( _) | | \n");
printf(" /-----\\ | | \n");
printf(" |__ __ | | | \n");
printf(" ||o| |0|| | | \n");
printf(" |``__`` | | |\n");
printf(" \\_____/ | |\n");
printf(" | | | |\n");
printf(" /| | | | \n");
printf(" //| | | | \n");
printf(" // | | | | \n");
printf(" || | | | |\n");
printf(" || | | | |\n");
printf(" || | | | | \n");
printf(" || \\_/ | | \n");
printf(" (_) | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | |\n");
printf(" | |\n");
printf(" _________________________| |___________________\n");
printf(" | GNAHNAM | \n");
printf(" ------------------------------------------------\n\n");
}
void hg4()
{
printf(" ___________________________\n");
printf(" | |\n");
printf(" | ______________________ |\n");
printf(" | | | | \n");
printf(" |__| | | \n");
printf(" || | | \n");
printf(" || | |\n");
printf(" || | |\n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" ( _) | | \n");
printf(" ( _) | | \n");
printf(" /-----\\ | | \n");
printf(" |__ __ | | | \n");
printf(" ||o| |0|| | | \n");
printf(" |``__`` | | |\n");
printf(" \\_____/ | |\n");
printf(" | | | |\n");
printf(" /| |\\ | | \n");
printf(" //| |\\\\ | | \n");
printf(" // | | \\\\ | | \n");
printf(" \\\\ | | // | |\n");
printf(" \\\\| |// | |\n");
printf(" \\| |/ | |\n");
printf(" | | | | \n");
printf(" \\_/ | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | |\n");
printf(" | |\n");
printf(" _________________________| |___________________\n");
printf(" | GNAHNAM | \n");
printf(" ------------------------------------------------\n\n");
}
void hg5()
{
printf(" ___________________________\n");
printf(" | |\n");
printf(" | ______________________ |\n");
printf(" | | | | \n");
printf(" |__| | | \n");
printf(" || | | \n");
printf(" || | |\n");
printf(" || | |\n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" ( _) | | \n");
printf(" ( _) | | \n");
printf(" /-----\\ | | \n");
printf(" |__ __ | | | \n");
printf(" ||o| |0|| | | \n");
printf(" |``__`` | | |\n");
printf(" \\_____/ | |\n");
printf(" | | | |\n");
printf(" /| |\\ | | \n");
printf(" //| |\\\\ | | \n");
printf(" // | | \\\\ | | \n");
printf(" \\\\ | | // | |\n");
printf(" \\\\| |// | |\n");
printf(" \\| |/ | |\n");
printf(" | | | | \n");
printf(" \\_ \\ | | \n");
printf(" \\ \\ | | \n");
printf(" \\ \\ | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" \\ \\ | | \n");
printf(" \\_\\ | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | |\n");
printf(" | |\n");
printf(" _________________________| |___________________\n");
printf(" | GNAHNAM | \n");
printf(" ------------------------------------------------\n\n");
}
void hg6()
{
printf(" ___________________________\n");
printf(" | |\n");
printf(" | ______________________ |\n");
printf(" | | | | \n");
printf(" |__| | | \n");
printf(" || | | \n");
printf(" || | |\n");
printf(" || | |\n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" || | | \n");
printf(" ( _) | | \n");
printf(" ( _) | | \n");
printf(" /-----\\ | | \n");
printf(" |__ __ | | | \n");
printf(" ||X| |X|| | | \n");
printf(" |``__`` | | |\n");
printf(" \\_____/ | |\n");
printf(" | | | |\n");
printf(" /| |\\ | | \n");
printf(" //| |\\\\ | | \n");
printf(" // | | \\\\ | | \n");
printf(" \\\\ | | // | |\n");
printf(" \\\\| |// | |\n");
printf(" \\| |/ | |\n");
printf(" | | | | \n");
printf(" / _ \\ | | \n");
printf(" / / \\ \\ | | \n");
printf(" / / \\ \\ | | \n");
printf(" || || | | \n");
printf(" || || | | \n");
printf(" || || | | \n");
printf(" || || | | \n");
printf(" || || | | \n");
printf(" / / \\ \\ | | \n");
printf(" /_/ \\_\\ | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | | \n");
printf(" | |\n");
printf(" | |\n");
printf(" _________________________| |___________________\n");
printf(" | GNAHNAM | \n");
printf(" ------------------------------------------------\n\n");
}
JS Lemming
Game Developer
Posts: 2383 Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON
Post
by JS Lemming » Tue Dec 14, 2004 3:55 pm
It would have looked better had you posted the results of the code instead. :spin:
Small girl at the harbor wrote: Look Brandon, that crab's got ham!
Falco Girgis
Elysian Shadows Team
Posts: 10294 Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:
Post
by Falco Girgis » Tue Dec 14, 2004 4:57 pm
No, he needed to post the code so that we'd have it when we go home.
MarauderIIC
Respected Programmer
Posts: 3406 Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA
Post
by MarauderIIC » Wed Dec 15, 2004 8:29 pm
No, because then the magic of webservers would eat the spaces.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
JS Lemming
Game Developer
Posts: 2383 Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON
Post
by JS Lemming » Thu Dec 16, 2004 4:31 pm
MarauderIIC wrote: No, because then the magic of webservers would eat the spaces.
Well the spaces weren't eaten alive in the coded version so that logic doesn't not even hold up yo.
Small girl at the harbor wrote: Look Brandon, that crab's got ham!
MarauderIIC
Respected Programmer
Posts: 3406 Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA
Post
by MarauderIIC » Sun Dec 19, 2004 9:57 pm
I mean, he would have had to use code brackets anyway. Misread you, sorry.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.