Castle Game Engine: Web target – big progress, first 3 demos to try
castle-engine.io
castle-engine.io
https://github.com/castle-engine/castle-engine
The minimal demos are still surprisingly big though (same ballpark as Unity web builds for similar simple demos).
For a language without runtime I would expect a couple hundred kilobytes at most for those simple demos (but the download is 6.4 MB compressed and decompresses to 43 MByte, and takes significant time after the download is finished to start). Would be interesting to figure out why dead code doesn't seem to be removed by the compiler (e.g. is it because of the engine design, or because the Pascal-to-WASM compiler doesn't support dead code elimination). Also why is the compressed to uncompressed ratio so big, there seems to be a lot of duplicate code or data in those WASM files.
Also per azakai in another thread, wasm-opt shrinks this binary to 14 MB. Still a lot.
[0]: https://www.freepascal.org/docs-html/user/userse13.html
The wasm file here could be optimized more. It looks like a 43 MB wasm is downloaded, and wasm-opt -O3 shrinks that to just 14 MB. It might also be faster that way (due to inlining and other optimizations). Startup will definitely be faster.
Pressing forwards to shoot feels wrong though.
This feels like it would be better with double keybinds. Arrows + Space for non-gamers, WASD + space for gamers.
Don't just change it to arrows though, that's going to be painful for laptop users who don't have those crappy half sized arrow keys (see macbook, framework, etc...).
Maybe for first-person shooters, but not for shmups, and definitely not for classic arcade style games.
To your second point the reason it feels unnatural is because mapping movement + actions to a single hand is usually not a good idea if you have the opportunity to distribute them.
ZXCV(ASDF)+arrows I would say is more standard for non-mouse games with keyboard bindings, cave story and touhou both go this route.
I searched and found some left-handed keyboards, but they are missing important things. Like they use qwerty-layout instead of ][poiu. The worse, they keep Enter on the right side and CAPS on the left. So you cannot remap Control key onto CAPS and use it with your pinky without twisting your right hand uncomfortably, when your left hand is on the mouse.
This is how I won on hard mode and it still took me a couple of attempts.
Docs aren't great yet, but that's probably not a priority yet.
https://castle-engine.io/old_news.php?id=2011-8-22-engine_re...
https://sourceforge.net/projects/vrmlengine/files/kambi_vrml...