Archive for the ‘Procedural generation’ Category.

Image Generation Algorithm

Well then!!

I decided to release the image generation algorithm I’ve been working on. I feel that I went kinda overboard with the legal license stuff but it seems that those are the norm, so hopefully everything is okay there. Please tell me if not! The zip contains an executable, the source file, lua files for the algorithm and a variant with wrapping enabled as well as a readme file.
Again, this algorithm is heavily based on the WaveFunctionCollapse algorithm by mxgmn.
To open the source file, you’ll need two MMF2 extensions:
Surface by Looki
Xlua by Justin Aquadro



Procedural generation is dear to me.

After that previous post I decided to finally add a ‘Procedural generation’ tag for my blog, and went through all the posts to tag them if applicable (with games like Excavatorrr I mostly tagged posts with pics!)

It made me very happy to realize that my blog has essentially begun with a procgen project (Excavatorrr) and continued to feature said thing frequently through the years. If I look at the stuff I’ve made, a nice amount of my games incorporate procedural generation in some form (Masjin, CWOUN, Excavatorrr, Paradise Fort, World Generator off the top of my head), and this recent interest in things like theĀ WFC algorithm and Markov chains provide evidence that my interest in procgen hasn’t really waned. Quite the opposite, I guess!

So yeah. Thanks, procedural generation. U the best.

More image generation, yay

So! I spent some more time working on my image generator algorithm based on/inspired by the Wave Function Collapse algorithm.
Here’s what I ended up with the last version of my first generator:
At that point it was really really slow even with very small input pics (you’ll notice that the output image is smaller to help; the gifs don’t represent the actual generation speeds!)
I decided to re-do the whole thing, this time trying to implement as much as possible in lua. In the end I got it working much, much faster:
I implemented some more things after taking that gif, but sadly didn’t make any new compilation gifs. I think this next one is done with a later version (tried to make an input that’d generate roguelike-like areas). Fairly sure I kept improving the algorithm after that, too!

Finally, I made some simple roguelike-like map generation using the final iteration of the algorithm! First with a more basic “tunnels, walls (and water for some reason)” pattern:

…And then with a more complicated pattern:

All in all I’m really happy with how this thing turned out, even though it’s not really a match for the WFC algorithm. I think this could be useful when generating levels, although I think it’d have to be comboed with multiple input images to really work. Maybe first an input image that defines various ‘areas’, then separate inputs for all those area types? I’d like to release the source of this but I think I’ll have to ask ExUtumno who made the WFC algorithm first, since my algorithm is very heavily inspired by it.

Procedural generation, yay!!! Also Ludum Dare results

After seeing the developer of Caves of Qud utilize the Wave-function collapse generation algorithm successfully for generating roguelike environments, I felt like it’d be fun to try to implement something akin to that in Multimedia Fusion 2. The original algorithm (You can find it here!) was written in C# and after trying to parse the code for a while I gave up and thought up how to approach the algorithm based on the general description of it on the git repository. The result isn’t nearly as nice and tidy, but it was fun to dabble with and it just might be useful for something if I can get it optimized a bit.

First try:

After some tweaks:

Current state:

As you can see, the algorithm suffers from slight misalignments here and there, making the results less neat, as well as small holes that are technically ‘handled’ by the algorithm but for one reason or another don’t get assigned anything. The generation is also very slow, something that can’t be seen in the gifs.

Anyway!! Ludum Dare #37 results arrived! Sadly, Salvage Star didn’t fare very well – it got in the top50 in the Graphics category, but that’s it. Very much understandable since the game ended up being really hard and frustrating + I guess people have kind of seen the ‘singular huge enemy you climb’ -thing already at this point. Still, I of course kinda wish it had fared better! Maybe next time. At least the game gave me some good data on how to get moving platforms to play nice.

Download Salvage Star



Screensaver jam!

So, over the weekend there was a little jam organized by JW with the theme of making screensavers. I was really really busy on Saturday and most of Sunday, but I managed to complete a little thing nonetheless:

Island Screensaver!!

CWOUN 100% completion recorded by Kie!

Here’s a really cool video of Kie beating the game fully:

Really cool! Thanks a lot for linking this :) I’ll try to get back to updating the game some more eventually but alas, life is hard and things take up time.

Excavatorrr reviewed by IndieImpression!

Now this was sweet, Nick Reineke at IndieImpression made a really cool video showcasing the game, also saying that he might stream it in the future. Thanks, Nick! And thanks, those of you who read this blog, too :)

There are a bunch of things to be fixed in the game, but I decided to release a small patch that fixes at least something; I made it so that there’s a new option to disable submitting scores altogether, and made it so that the game is able to automatically enter the last nickname the player has used. Handy!

Get the new version here!


Aaand here’s the video review. Good stuff!

Excavatorrr 2 is out!

Yeah! Yay. Even though I should feel bad for not spending this time to work on ESA, I’m quite happy to be able to put out a game after a long long time without any “serious” releases. Since I’m in a kind of a hurry, I’ll just drop the download link here and let you figure out the rest. Hopefully it’s not too frustrating! I think I’ll make some patches as problems occur.



As for ESA, I’ve been fixing some ages-old bugs and problems with it, and seeing some real nuisances squished out is really invigorating my interest in working on that one. So good news, I suppose!


Yes, that is Stuff.

Also ESA is being made, don’t worry!

…And since apparently I didn’t mention it here, ESA will probably be 100% free. Yeah, yay.

ESA mentioned at Kotaku, and stuff

I thought I posted this yesterday, but it appears that I didn’t!

So yeah, ESA got a really nice and positive mention at, and as a result the game’s twitter followers doubled. Pretty cool!

Also LD24 was a total disaster from my part – I didn’t finish anything and the theme (evolution) left me completely uninspired. Boo! During the final hours of the event, I did work on something, but it was hardly worth submitting – I’ve been wanting to make a java roguelike for my cellphone to pass time with. Turns out it eats battery charge really fast so I can’t really use even the bare-bones RL I created, but I had fun working on it! Some screenshots: