Good news for my gamers readers. It’s not really fresh news but it has never been written anywhere.
The commercial video game Crosscode is written in HTML5, making it available on every system having chromium or firefox. The limitation is that it may not support gamepad (except if you find a way to make it work).
A demo is downloadable at this address https://radicalfishgames.itch.io/crosscode and should work using the following instructions.
You need to buy the game to be able to play it, it’s not free and not opensource. Once you bought it, the process is easy:
- Download the linux installer from GOG (from steam it may be too)
- Extract the data
- Patch a file if you want to use firefox
- Serve the files through a http server
The first step is to buy the game and get the installer.
Once you get a file named like “crosscode_1_2_0_4_32613.sh”, run
on it, it’s a shell script but only a self contained archive that can extract
itself using the small shell script at the top.
Change directory into
data/noarch/game/assets and apply this patch, if you
don’t know how to apply a patch or don’t want to, you only need to
remove/comment the part you can see in the following patch:
Then you need to start a http server in the current path, an easy way to do it is using… php! Because php contains a http server, you can start the server with the following command:
$ php -S 127.0.0.1:8080
Now, you can play the game by opening http://localhost:8080/node-webkit.html
I really thank Thomas Frohwein aka thfr@ for finding this out!
Tested on OpenBSD and OpenIndiana, it works fine on an Intel Core 2 Duo T9400 (CPU from 2008).