Hell's Gate wargame running in a browser on itch.io

This is an example of a game built using the new monogame Web framework, running in itch.io

It’s a computerised version of a hex and counter wargame I did during lockdown a few years back.
Everything works well apart from mousewheel support for scrolling the map in and out - this get’s intercepted by the browser so never gets handled as input to the game.

I ran into some issues with porting to the Web framework but nothing too difficult to solve.

1 Like

Hey, jonathanmcc!

Update the index.html in your project as in this commit, to prevent the onmousewheel event to reach the outer page.

2 Likes

I applied the code fix and mouse wheel scrolling now works perfectly.
(itch.io version not updated yet)

Many thanks again for your efforts.

UPDATE:

I uploaded the fix to itch.io. It partially works:
In Chrome it works using Shift–>MouseWheel. MouseWheel by itseld also activate the scrollbar on the page.
It does not work in Firefox - either with or without Shift pressed.

I have not tried other browsers.

1 Like