Holy freaking rhinocerous on a coke binge, batman, we have a KnP ROGUELIKE

captaincabinets's picture

...well, more a proof of concept.

But seriously, I present the first version of Krawl! At this stage, it's just a random maze generator. It takes a little while, but it's kinda mesmerising. Linear searching of a matrix has never been so much fun!

This took me some hours. Though I've gotta say, it is one of my proudest achievements in Klik & Play to date.

Next step is making it look like a mad proppa dunjin with rooms and naturalism and all that bebop, but I'm a little spent.

Edit: For those interested, the algorithm is a slightly modified version of part I of this page . That page, in turn, came from the pretty interesting (for the mechanics-minded of you) 300 mechanics page.

AttachmentSize
krawl.zip116.12 KB

Comments

Pizza Time's picture

Fucking Christ cabinets you

Fucking Christ cabinets you are one rhinoceros bastard.

snapman's picture

That's some Komplex Klik

That's some Komplex Klik right there. I think I've discerned the algorithm from watching the movement of the ball. I would suggest trying to reduce the amount of unproductive scanning by directly inspecting adjacent tiles, but I really don't want to sort through your 66 events. That thing's a beast.

snapman's picture

Okay, now I get to look like

Okay, now I get to look like a huge jerk. This is your fault, cabinets! After watching your krawlbuilder for far too long yesterday, I couldn't stop thinking about that algorithm! So I had to give it a go today. It should work fine, but I've dialed down all the waits as low as I could without it missing collisions. If it starts to hiccup, the "every X ms" can be increased.

AttachmentSize
mapgen.zip106.97 KB
captaincabinets's picture

You jerk! I haven't yet had

You jerk! I haven't yet had a look at the source, but by gum the implementation is so much more intelligent.

snapman's picture

Hmm, I copied the KnP DLLs

Hmm, I copied the KnP DLLs into the zip from Krawl (I copy everything from you!), but I think they're different from the ones that come with the educational version. I tried running it here (at work) straight from the zip, and it's erroring all over the place. Might your (probably commercial) version of KnP have a different set of libraries?

edit: tested it with randomly downloaded versions of the dlls from the internet, with no difference. I think it's actually the speed difference between the two computers. I guess I should slow it down more, because on a modern machine it runs so fast that a lot of collision detections get mixed up.

zum's picture

cabinets this is all well

cabinets this is all well and good but i can't smoke a cigarette :(

snapman's picture

I actually worked the phrase

I actually worked the phrase "press C to smoke" into a conversation today about designing requirements for an online classroom system. It was for a class.

Pizza Time's picture

Classy.

Classy.

pensive-mosquitoes