Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Cyan

8
Posts
A member registered May 12, 2020 · View creator page →

Creator of

Recent community posts

Thanks Max!

I’m well aware of all those bugs, and pretty much agree with all the points you raised. Ultimately, we bit off more than we could chew for this gamejam (and were a bit rusty in the gamedev department). I think it could have worked out if we had prioritized our tasks better, but maybe the scope was too large from the start.

Originally we also wanted to have additional personalities besides just the two present in this version, and additional hazards besides just spikes, but that also had to be scoped down during development.

Did you download the one we linked in the comment? Unfortunately we initially uploaded a version that was broken…

What was the error message you got?

Interesting – did you download the .exe?

Agreed. We wanted to add a bit of a tutorial, but we ran out of time. We also intended to make many more levels and many more characters (like roaming enemies, a chicken character that always runs away from enemies, a lion berserker character that always attacks enemies, etc) but a couple things ended up taking more time than we anticipated…

(1 edit)

If you download the .love file, rename it to .zip and unzip it, there’s a file called bg.lua, as well as a bunch of files “bg.png”, “bg2.png”, … and a bunch of files “bg-progressmap.png”, “bg-progressmap2.png”, … those are the ones making up the effect. Feel free to reverse-engineer it and use it in your game!

Essentially, the effect consists of two layers. There’s a colourful background (which can itself also have a pattern on it), and there is a “progress map” which is grayscale, and layered on top of it.

at time 0, the progressmap masks the background so that only parts of the background that are behind perfectly white pixels (#FFFFFF on the progressmap) are displayed.

at time 1, the progressmap masks the background so that only parts of the background that are behind slightly less white pixels (e.g. #FAFAFA) are displayed

at time 255, the progressmap masks the background so that only parts of the background that are behind perfect black (#000000) are displayed.

Essentially there’s a sliding window that’s over time being slid over the progress map. The sliding window at every point in time determines which brightness values of the progress map mask or unmask the background. This means if you have a white-to-black gradient from left-to-right, and a white background image, you will just get a white stripe travelling from left to right. If you draw with a brush that loses its colour over time (starting out e.g. white and then fading to black) you will get a “fireworks-like” effect (kinda like in tron legacy) tracing out the line you’ve drawn.

From there on out, it’s really just a matter of finding a bunch of interesting patterns (ideally with a bunch of different grayscale values) and creating interesting backgrounds that get masked/unmasked. You can find a lot of stuff that ends up really interesting looking, vector patterns, fractals etc. I turn them grayscale and sometimes overlay a dithering pattern. Applying a gaussian blur makes the transition smoother and rounder.

This is all implemented in a GLSL shader btw. Background images/progress maps are paired randomly, so there’s a ton of possible different combinations.

The code is pretty shitty, I only spent a couple minutes writing it – if you do want to use it for anything, you might wanna clean it up.

True that – sadly neither of us had a windows computer available at the time… next time!

Sorry about that! I commented above with links for a new version that should work. Let us know!

We uploaded a version that fixes the launching issues, but is otherwise unchanged:

https://jonathans-random-stuff.s3-eu-west-1.amazonaws.com/curse-of-insanity-win64.zip (windows version)

https://jonathans-random-stuff.s3-eu-west-1.amazonaws.com/curse-of-insanity.love (love zip file, can be opened with love2d)