The Daily Click ::. Forums ::. Klik Coding Help ::. Cave Game? Maybe?
 

Post Reply  Post Oekaki 
 

Posted By Message

Maltar Draco



Registered
  22/08/2013 19:25:19
Points
  215
12th December, 2013 at 12/12/2013 20:55:47 -

Because my Guitar game is being delayed until I become a little a better at guitar, I need a new project but I remembered that I already made something a while ago.

It's a random cave generator.

It has 40*30 (1200) blocks (which are actives btw) and uses Mersenne Twister to carve tunnels into it, that's all.

Looking at my uncommented 11 events, I realise just how simple it is. Firstly the screen is filled with the blocks, then a special circular cave cutting active comes into play. The Cave Cutter has X, Y and Size values as well as X, Y and Size "Inertias" that causes it to keep going in the directions it already has.

Run the first loop 6 to 12 random times.
On the first loop:
Reset all the values of the Cave Cutter.
Move the Cave Cutter to a place on the frame.
Run the second loop 6 to 12 random times.

On the second loop:
Modify the X "Inertia" by -1 to +1 randomly.
Modify the Y "Inertia" by -1 to +1 randomly.
Modify the Size "Inertia" by -1 to +1 randomly.
Move the Cave Cutter by what the X and Y "Inertias" currently are.
Scale the Cave Cutter by what it's current size is plus the Size "Inertia" and plus 1/2.
Destroy the blocks that the Cave Cutter touches.


So how do I turn this simple generator into a game that we would all like to play? And keep in mind that millions and millions of actives on the frame is not good for ram so size will be limited.

Oh... and NO! I will not make another Minecraft clone! I have Minecraft if I want Minecraft.

Edited by Maltar Draco

 
Maltar Draco, I do PC gaming.

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
12th December, 2013 at 12/12/2013 21:52:25 -

Some ideas for you.

You are trying to rescue beings from inside the cave while it's slowly-but-surely filling with water. Or lava.

One of the random caves has the Goblin King hiding in it, and you need to exterminate as many goblin warrens as possible across the land. A new map with tougher goblins is generated after you clear one. You win the game after clearing out 100 warrens.

You work for an oil drilling company and are spelunking to find the most valuable and cost-effective ways to extract the resources.

You're a paranormal investigator who needs to track down a hideous cult that has burrowed into the landscape. Find all the parts of their ritual (scattered across the map in guarded chambers) and toss them in a deep lake or whatever so the cult is eradicated, one way or another.

You play as a smuggler trying to hide your ill-gotten gains in a honeycomb of caves just outside of town. Bury your treasure and eliminate any snooping town guards and nosy peasants as your thieving empire grows. Acquire team members and engage in side-scrolling, squad-based combat.

You are a psychic traveler who can in one form walk through the caves as normal. But you can also transmute into a strange otherworldly form that only allows you to traverse within the stone walls. Find treasures, unlock secrets, and/or assassinate your family's murderer(s) as they hide from justice in the deep caverns.

Detonate the supports of as many chambers as you can so that your clan's treasure will never be uncovered and your ancestors can finally rest.

...So there are a few for you.

 
n/a

Maltar Draco



Registered
  22/08/2013 19:25:19
Points
  215
12th December, 2013 at 12/12/2013 22:08:13 -

Well... that's the randomly selected side-quests sorted!

Edited by Maltar Draco

 
Maltar Draco, I do PC gaming.

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
13th December, 2013 at 13/12/2013 01:30:40 -

Depends on the perspective:
* Top-down -> Some kind of roguelike / shooter (with or without stealth elements).
* Side-view -> A bit more difficult because of gravity, which can make some areas of the cave inaccessible unless you include flying, ninja ropes, ladders, etc. Obviously "cave flyer" is a whole genre of games in itself.

You don't even have to make it about caves - the same engine could just as easily be used to generate islands/water etc instead.

 
n/a

Rick Cameron



Registered
  11/03/2012 08:45:25
Points
  82
13th December, 2013 at 13/12/2013 05:59:31 -

Huh.

I've wanted to do a limited area strategy game for a while, like a base management focus vs another base.

In a nutshell I wanted to have 2+ companies send peeps from Earth up to a newly discovered asteroid. The idea is to be the last remaining company on the rock. Only it's not on the surface, its inside the giant hollowed out chamber... (represented top down, with a few rudimentary cave systems and big hollows in the centre, the edges of the screen are the rock 'walls' ...)

So you have security forces, scientists, miners, and Human Resources peeps. You land, develop the base, find resources etc etc...

But the whole point of it not being a standard RTS is that you are only looking at a population of around 20-30. Combat is rare and intense, because any loss of your security forces is going to hurt with low numbers, and replacements have to be flown from Earth. You'll be trying to sneak about and disrupt the enemy company plans, ruin their food supply or destroy a generator type-o-thang...

Basically a really tight RTS with a focus on the base numbers, more an economic and strategy tilt than any insane armies-clashing type.

Did that make sense?

Anyway. 1200+ actives sounds horrible. I get paranoid when my workspace has to deal with 200+ :S

 
n/a

Maltar Draco



Registered
  22/08/2013 19:25:19
Points
  215
13th December, 2013 at 13/12/2013 14:02:55 -


Originally Posted by Sketchy
You don't even have to make it about caves - the same engine could just as easily be used to generate islands/water etc instead.

Wow! I didn't even think of that, the possibilities are starting to appear to be very great in number. And I just remembered that the classic artillery game Worms was based on a simple platform island generator.

 
Maltar Draco, I do PC gaming.

Maltar Draco



Registered
  22/08/2013 19:25:19
Points
  215
16th December, 2013 at 16/12/2013 21:53:45 -

What's this? Active Backdrop? That's new! Could this thing be useful to me for this generator? You know because I need to have lots of blocks on the frame!

Weirdly enough, the Active backdrop appears to count as an active rather than a backdrop.

 
Maltar Draco, I do PC gaming.
   

Post Reply



 



Advertisement

Worth A Click