Bay 12 Games Forum

Finally... => Creative Projects => Topic started by: Jack_Bread on January 05, 2010, 06:48:55 am

Title: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 06:48:55 am
I've started making a game called "In the Cave" for a competition going on at Yo Yo Games.

In the Cave is an adventure game.
You play a guy who's girlfriend was kidnapped by "green men." You have, at the beginning, just some clothes and a knife, but you gain a few pieces of equipment as you delve in.
It's currently being developed so only expect to maps and retarded goblins.
There isn't much right now so feel free to not download it.

Download: COMPETITION5 - In the Cave (http://www.mediafire.com/?2yy5tolmzzm)

Here some screenshots:
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Spoiler (click to show/hide)

Directions, the story, and bugs are in the game, so I'll just post them here for those of you who don't want to download this.

Don't mind my crappy writing skills. Feel free to improve the story, though. :P
Spoiler: Game Info (click to show/hide)

Spoiler: Changes (click to show/hide)
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 05, 2010, 08:21:34 am
You've got a good start, looks playable.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 05:24:25 pm
Thanks, Hippoman.

I got a few things done. Mainly, the addition of the goblin kid and the goblin warrior and making the menu screen.
Other minor things done are making the second map larger and adding the third map.
Title: Re: In the Cave - GameMaker project
Post by: eerr on January 05, 2010, 05:28:10 pm
But, does game maker allow enough space for AI?
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 05:30:05 pm
Not entirely sure. :\
I have to keep the file under 20mb so I don't think I will have room for awesome AI. I barely know how to use those functions, though. D:
Title: Re: In the Cave - GameMaker project
Post by: Bricks on January 05, 2010, 05:35:55 pm
I'm not sure what you mean when you say space.  Does gamemaker have a filesize limit now?  Can you only use so many lines of code?  Code really doesn't take up that much space - hardly any, compared to graphics and music.  The only real concern with AI is spending way too much time on it, when something simple like "move towards if healthy, run away if mortally wounded" works just as well.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 05:48:03 pm
There is no limit. It's just that Gamemaker doesn't handle resourses well. Also, I'm entering this game into a competition and there's a filesize limit of 20mb.

The AI for the goblins right now is "if the character is nearby, move towards him, otherwise move towards random location on map." Except for the child. (It's almost the same for the mushrooms, only they start creating spores and the spores check for empty spaces then recreates itself.)
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 05, 2010, 07:29:03 pm
That V doesn't really look like a V. Is there anyway you could space it a bit more? From one point to the other.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 07:41:11 pm
Yeah, I'll fix those. "You'be dead." <_<
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 05, 2010, 07:45:34 pm
Looks impressive.
The graphics scare me away though.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 05, 2010, 07:47:56 pm
Really? :o
Why?
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 05, 2010, 07:52:40 pm
Too many black lines and monochromatic fill for my eyes.

It's really a preference I guess, but all of my old games looked like this,
 and I sort of associate the art style with a lack of polish and completion.

Maybe just add a dark area to the right edge of every fill so it looks less flat.

If the game is good enough, graphics don't matter much though.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 06, 2010, 11:02:05 pm
(No update yet.)

I think there may be a leak somewhere in the game. I was testing it, but I had to leave to do something, then when I came back, it was lagging HORRIBLY and wouldn't exit and task manager said it was using 50,000+ K memory. :\

Also, I fixed a few of the graphics so there are less black lines. (Purple mushrooms are shiny. <_<)
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 07, 2010, 12:33:46 am
I hope the memory issue works out.

Can you post a few new pics?
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 07, 2010, 01:19:37 am
Alright.

Spoiler (click to show/hide)
Spoiler (click to show/hide)

EDIT: Crap, I forgot to get a screenshot of the new pause menu. It makes experience useful, but enemies can't damage you for the moment.
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 07, 2010, 02:00:02 am
Much better!

My eyes are saved from the black line menace.
It looks somewhat more professional now.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 07, 2010, 04:05:06 am
Thanks. :)
I am running out of creatures to put in. Ideas? (I bet a few of you are going to say "Dwarf" or "HFS")
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 07, 2010, 05:19:42 am
Hmm...

Why not make up something?
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 07, 2010, 05:47:54 am
Couldn't think of anything original. :\
Title: Re: In the Cave - GameMaker project
Post by: Halmie on January 07, 2010, 08:31:43 am
Giant Crabs! Lobster Men! Trogoldytes or kobolds maybe. Undead could work as well.
Title: Re: In the Cave - GameMaker project
Post by: Psyco Jelly on January 07, 2010, 12:54:49 pm
Gremlins? Nilbogs? Mushroom-men? Stone people? Ghouls?
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 07, 2010, 01:09:57 pm
Why, oh why, do I do my best thinking when I'm about to go to sleep? :(

I was flooded with ideas last night, but only 4 I can clearly remember.
-There are 10 floors in this cave.
-Every 2 floors, you have to choose between getting a better weapon or better armor.
-A demon is the only enemy on floor 10.
-After rescuing your girlfriend, you must take her back to the top(you only have to climb 5 floors, though.)

EDIT: Also, thanks for the ideas. :)

EDIT2: Still searching for that leak, but for now, here's a screenshot of a cutscene! :D
Spoiler (click to show/hide)
Title: Re: In the Cave - GameMaker project
Post by: The Mad Engineer on January 07, 2010, 09:44:42 pm
You could add a sightless abomination race, consisting of humans that have fled to the underground, lost their vision and skin tone, and rely heavily on cannibilism.  Perhaps make it so that you can scare them away with a torch or something.  To make it even more "fun", you could add lighting and stuff, with enemies that rely on different senses...

Better make sure your torch doesn't expire, or the ghouls will eat you.
Title: Re: In the Cave - GameMaker project
Post by: Halmie on January 07, 2010, 10:02:32 pm
Maybe put a LOS. Just make it that when ghouls are out of your LOS they would creep up on you. As soon as you turned round they would freak and run like hell. A sound to go with them would be nice but make it subtle.
Title: Re: In the Cave - GameMaker project
Post by: Psyco Jelly on January 07, 2010, 11:54:11 pm
I forgot to suggest the bestest of all underground races: MORLOCKS
Title: Re: In the Cave - GameMaker project
Post by: Nadaka on January 07, 2010, 11:59:16 pm
angry doors. They have a slam attack and can block your path.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 08, 2010, 12:13:35 am
@TME & Halmie: I didn't think about line of sight... I'm not sure how I'll get it in, but I will do my best. ;)
@TME: I'm not going to do that. I need to keep the game small for now. If it gets popular, I may make a sequel, then that'll be in.
@Psycho Jelly: Morlocks! :O Good idea. :)
@Nadaka: Neat idea. :) When I add doors, I'll do that.

Once I get opening cutscene down and re-add in monsters attacking back, I'll upload a new release. :)
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 08, 2010, 07:24:49 am
New version uploaded! Quite a few things added! :D
Including the possibility to "win." (It only exits the game when you do.)
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 08, 2010, 01:49:51 pm
Very nice!
A fun little run around.

You need some sort of treasure rooms maybe.
This is pretty sweet though.

It does have the rogue-like feel.
If you did that on purpose or not though...

I like it.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 08, 2010, 03:15:18 pm
Thanks! :) I'm not sure what the point of adding treasure would be, though. :\

Funny thing happened while testing it. So I rescue Patricia(the girlfriend) from the demon and bring her to the top. Because of a mess up, I was sent to the current bottom floor. I begin going back upward. While in the floor right before the surface, Patricia runs off. I was using the platemail at the time, so I wasn't going so fast. When I catch up to her, she is next to a goblin warrior, a goblin child, and a regular goblin. Before I could approach, the 3 goblins scatter and she patiently waits for me. o_o
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 08, 2010, 05:56:51 pm
It's a conspiracy!
Goblin Queen!
Title: Re: In the Cave - GameMaker project
Post by: sonerohi on January 08, 2010, 08:00:12 pm
Quick, stomp her feet!
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 08, 2010, 09:44:07 pm
She beat them all off.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 09, 2010, 12:21:08 am
Spoiler (click to show/hide)

Here's a screenshot of the new enemies I just added in. ;)
(http://img197.imageshack.us/img197/7614/inthecave617.png)

EDIT: In other news, the leak is gone. I had the game open for ~15 minutes and it's still at 30 fps.
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 09, 2010, 01:05:26 am
Spoiler (click to show/hide)

Here's a screenshot of the new enemies I just added in. ;)
(http://img197.imageshack.us/img197/7614/inthecave617.png)

EDIT: In other news, the leak is gone. I had the game open for ~15 minutes and it's still at 30 fps.

I thought someone would say that. But I didn't bother to edit.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 09, 2010, 01:49:20 am
Anyone know a free way to make sounds? :\
My microphone won't work. D:

EDIT: Oh, right, it's almost my birthday... What is a good microphone?
Title: Re: In the Cave - GameMaker project
Post by: eerr on January 10, 2010, 10:53:56 am
You could always use earbuds.

They can double as a microphone decently. I actually found this out by accident while playing World of Warcraft.

swearing to self "goddam I can't turn up the volume, it will wake my mom up."
"what you guys can hear a little bit?"

Hours later "oh dam, This earbud is working like a microphone."


That is , if you don't want to wait for your parents to buy you a microphone.


Title: Re: In the Cave - GameMaker project
Post by: chaoticag on January 10, 2010, 01:28:24 pm

Ran into this odd bug after trying to up my damage after upping my defense. The game carried on, so it isn't fatal, but I really want more power.
Spoiler (click to show/hide)
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 10, 2010, 03:23:52 pm
Hah. I forgot to reupload that fix. Thanks for pointing that our. :)
I'll upload it in a second.

EDIT:
You could always use earbuds.

They can double as a microphone decently. I actually found this out by accident while playing World of Warcraft.

swearing to self "goddam I can't turn up the volume, it will wake my mom up."
"what you guys can hear a little bit?"

Hours later "oh dam, This earbud is working like a microphone."

That is , if you don't want to wait for your parents to buy you a microphone.
Now that you mention it....
I just remembered I had headphones with mic. :)

EDIT2: Alright. Here's the new link: http://www.mediafire.com/?aj20x2zmx0t
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 10, 2010, 04:28:44 pm
O.O
Link is nice.
I am pleased.
Title: Re: In the Cave - GameMaker project
Post by: The Mad Engineer on January 10, 2010, 04:55:13 pm
The girlfriend keeps running away from me.  I think she's afraid of me.  I killed everyone, in front of her, and she refuses to go to the surface.  She keeps running back into the caverns as soon as I turn my back!  >:(

EDIT:  GODDAMIT PATRICIA! We are going home!  Now!  Stop running back there!  No, we're going to the surface.  No, stop going backward!  Curse you, woman!  Why won't you come with me?!

EDIT2:  That's it.  I've been playing demented cave-tag with her for half an hour now, came TWO SQUARES from the exit, and she ran all the way back to the cave where the goblin family was.  It doesn't help that she's seven times as fast as I am.  I quit.  Go rot in the Underdark, Pat!

EDIT3:  Finally decided to try it one more time.  It took me a pretty long time to convince her to follow me:
(http://img189.imageshack.us/img189/4207/wowsh.png)
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 10, 2010, 05:09:41 pm
Ha ha. :)
To be honest, I have no idea what's wrong with her. xD
Her only movement is a 16 pixel step toward you when your nearby. It only some careful maneuvering to get her to follow you all the way through.
(I thought I fixed it for a moment, but when I got to the second floor she just keeps running... :( )

EDIT: By the way, I don't really have much left to do since I got most of the coding done. Mainly bug fixes and beautification. :)
Also, Orange, what do you mean by "Link"? :o
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 10, 2010, 05:46:21 pm
Ha ha. :)
To be honest, I have no idea what's wrong with her. xD
Her only movement is a 16 pixel step toward you when your nearby. It only some careful maneuvering to get her to follow you all the way through.
(I thought I fixed it for a moment, but when I got to the second floor she just keeps running... :( )

EDIT: By the way, I don't really have much left to do since I got most of the coding done. Mainly bug fixes and beautification. :)
Also, Orange, what do you mean by "Link"? :o
The download link.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 10, 2010, 07:00:20 pm
(http://img189.imageshack.us/img189/4207/wowsh.png)
Heh. Forgot to update that picture. :o

Spoiler (click to show/hide)
Title: Re: In the Cave - GameMaker project
Post by: chaoticag on January 11, 2010, 12:16:46 am
Her only movement is a 16 pixel step toward you when your nearby. It only some careful maneuvering to get her to follow you all the way through.
I have a simple pathfinding code that might help. It doesn't take into consideration walls and stuff, so it could use some modification.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 11, 2010, 06:40:35 am
Her only movement is a 16 pixel step toward you when your nearby. It only some careful maneuvering to get her to follow you all the way through.
I have a simple pathfinding code that might help. It doesn't take into consideration walls and stuff, so it could use some modification.
Ooh. Could you PM it to me? ;D

By the way, Art and the demon make a sound when they die. (They're edited versions of my voice. <_< )
Also, there are now death screens. :D I'm proud of the second one. Here's screenshots of them. :)
Spoiler (click to show/hide)
Spoiler (click to show/hide)
Title: Re: In the Cave - GameMaker project
Post by: chaoticag on January 11, 2010, 02:31:16 pm
Annnd sent. You probably dont have to deal with finding the closest of three object, so the thing I sent was a re-iteration of part of my script. Should still work though.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 12, 2010, 11:16:01 am
Thanks. :)

Little to no progress yesterday. I went to take a nap and when I woke up, my mom convinced me to go back to sleep (it was 7... :( ). I'm starting to make the actual floors.

EDIT: The code you sent me is working properly. ;) Thanks, again!

ALSO... I was wondering if the current attack system is good. :\
Right now, it gets a random number out of 6, multiplies it by the creatures attack and then divides it by the other creatures defenes.
(In code, its other.hp -= (ceil(random(6))*dammult)/other.damblock)  "dammult" is attack and "damblock" is defense.)
Title: Re: In the Cave - GameMaker project
Post by: Bricks on January 12, 2010, 07:48:03 pm
It's kind of weird that you use ceil() to make an integer, and then multiply it by something which is probably a decimal.  I don't think many games keep track of fractional levels of HP.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 12, 2010, 08:05:05 pm
It's kind of weird that you use ceil() to make an integer, and then multiply it by something which is probably a decimal.  I don't think many games keep track of fractional levels of HP.
ceil makes decimals? Really? I usually use floor() to make random numbers, but I didn't want to deal with divide by 0 errors, so I thought using ceil() would be a good alternative. :P

(PS changed ceil to round. I didn't notice ceil was making decimals in debug mode. :P)
Title: Re: In the Cave - GameMaker project
Post by: Psyco Jelly on January 12, 2010, 08:43:59 pm
Gamemaker 8 has irandom_range(a,b) to generate and integer between and including the numbers and b. Spell and Spear's dungeon generator makes heavy use of that.

This is assuming you are using version 8.
Title: Re: In the Cave - GameMaker project
Post by: Bricks on January 12, 2010, 08:51:49 pm
Well, I meant more along the lines that:
Code: [Select]
ceil(random(6))produces something like an integer, but then you multiply it by
Code: [Select]
dammult/other.damblockwhich is most likely going to be a noninteger.  I can't remember if Gamemaker tracks integers and floats separately.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 12, 2010, 08:57:40 pm
Gamemaker 8 has irandom_range(a,b) to generate and integer between and including the numbers and b. Spell and Spear's dungeon generator makes heavy use of that.

This is assuming you are using version 8.
I wish. I can't register GM8 offline. :(
I'm using 7, by the way.

On another note, imps now shoot FIREBALLS. Except that they shoot TOO MANY FIREBALLS. :O

EDIT: *Throws gasoline-soaked rags at readers.* FIREBALL FIREBALL! D:<
(http://i649.photobucket.com/albums/uu215/Jack_Bread/inthecave8-20.png)
Title: Re: In the Cave - GameMaker project
Post by: chaoticag on January 13, 2010, 12:50:07 pm
How many is too many? Can't you have it as a small chance per three turns or something?
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 13, 2010, 12:58:25 pm
They fire a constant stream at you.
I didn't feel like doing the delay right now. :\ But I'd guess I should make it like the growth of the small mushrooms. Like, at creation, get the current turn. Check if the current turn equals the create turn plus 100, then grow up.

ALSO, I think I've found a way to do pretty basic line of sight minus blackening out parts you can't see.
Title: Re: In the Cave - GameMaker project
Post by: Hippoman on January 13, 2010, 05:55:57 pm
Put a timer on the fireball. Or attacking in general.
Title: Re: In the Cave - GameMaker project
Post by: Psyco Jelly on January 13, 2010, 06:14:38 pm
attack = (random(6)+1)*dammult/other.damblock;
attack = ceil(attack);
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 13, 2010, 06:21:47 pm
Well, right now, monster attack you only if you attack. Couldn't figure out how to get them attack on their own. :\
Also, general timers wouldn't work since all monsters function with the global variable move.
(Whenever the character moves, move goes up by your current speed which is based on armor, then the monsters move and do other stuff while move is still above 0.)

FAKE EDIT: Ninja'd by Psyco Jelly. :O
I don't understand. It doesn't look like that'd work since your using the same variable twice. :\

PS. Once I fix the second room and add a delay to imp's FIREBALL, I'll release another demo! ;D
Title: Re: In the Cave - GameMaker project
Post by: Psyco Jelly on January 13, 2010, 06:30:06 pm
x = x+1 will increase x's value by one.
It's the same thing as x += 1.

It doesn't matter how many times you use it.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 13, 2010, 06:40:07 pm
Ah, right. <_<
I'll try that in a moment. Also, I gave imps the ability to walk through walls... a mushroom man slipped through with it. :o
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 14, 2010, 06:59:17 pm
Sleeping problems slowing progress. :(

Alright, I'm about to add in a few monsters. I was thinking of adding in fear. It would be like health, except it would be faster lowering and raising. Certain unique monster(like the imp, demon, *man) would make your courage go down as well as narrow passages(which would be darker than other areas). Thoughts on that?

EDIT: Spiders and their webs are in. Beware of them. >: )

EDIT: Maybe an... *update* (http://www.mediafire.com/?nny5zwdonzd)... will get you posting? ;D
Spiders and their webs added, as said above, and imps fire at a more reasonable rate now. Mushroom men added. :O
I sorta think this was release prematurely. :\ Two maps fixed and I think the added monster are only in 1 room each. Also healing is MUCH slower for added fun. :)
PS If you're having trouble killing the demon, press T. :o
Title: Re: In the Cave - GameMaker project *update*
Post by: Outcast Orange on January 15, 2010, 02:38:00 pm
Spiders!
Webs!

Mushroom men?

I suppose!

Sounds good Jack.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on January 21, 2010, 02:56:15 pm
Bump. I lost motivation on this project for a few days. I started looking at a few GM examples I had hanging around, and I found a snippet of code that has monsters damage you! :D
So now monsters can attack you without you doing damage to it!(which is bad. <_<)
After school(1-2 hours), I'll continue working on it. ;)
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on January 21, 2010, 06:14:43 pm
Sounds good Jack.

Motivation is hard to come by sometimes.
Title: Re: In the Cave - GameMaker project
Post by: Jack_Bread on February 22, 2010, 05:15:39 pm
I was reading Cloud Scream and I saw Orange mention this. PROGRESS!

Next update will have bandages that boost your healing rate(1 hp a round) and weapons and armor that you pick up.

EDIT: http://www.mediafire.com/?2yy5tolmzzm
I was just about to do this yesterday, but when  I took out m flashdrive, my sister asked for her laptop. Then I walked the dog and ended up going to a friends house (bad idea; it was boring), so I lost the chance to upload it for the rest of yesterday. :(
But it's updated now.

EDIT: Sunava bitch.
I forgot to change the start up info. None of the debug keys will work.
Title: Re: In the Cave - GameMaker project
Post by: Outcast Orange on February 23, 2010, 11:56:10 pm
Sounds cool.
I'll try it when I get more free time.