Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Canvas does not capture scroll event

A topic by buckle2000 created Apr 17, 2020 Views: 346 Replies: 4
Viewing posts 1 to 4

When I use the mouse wheel to adjust the warp brush size, it scrolls the page too.

Developer

I can't prevent it in OpenFL (i.e. it wasn't possible the last time I checked, but I'll check again). It shouldn't be a problem in fullscreen mode and in the non-itch version of the generator.

(+1)

I think it can be prevented in javascript. Is it possible to embed custom javascript? I think you can contact the site support to get the permission.

(+1)

btw, your generator is well made. Is there a write-up for the algorithms used?

Also, the rivers usually have 1-2 bridges. There should be more along a long river, I think.

Developer
btw, your generator is well made. Is there a write-up for the algorithms used?

As far as I remember, there were a couple of my comments on Reddit about how it works, I'll check it. There is also the source code of some early version of the generator on GitHub.

Also, the rivers usually have 1-2 bridges. There should be more along a long river, I think.

Rivers in MFCG are pretty large, usually around 50-100 meters wide. In Middle Ages it was expensive to build a bridge over a river this wide (and probably still is nowadays). I would argue that 1-2 bridges is a reasonable number (augmented by ferries), although it could vary depending on many factors (size of the city, its prosperity level and strategic position, available materials etc). But actually I don't define the number of bridges explicitly, they are just points of intersection of large roads and the river. In some cases a single "secondary bridge" is added when it looks like there are not enough "primary" ones.