Live data from Hacker News

Castle Game Engine: Web target – big progress, first 3 demos to try

castle-engine.io

1–10 of 27 posts

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#4
If you press Ctrl+Alt+Delete, it thinks you're still holding Ctrl+Alt afterwards, even if you're not. The same for Alt+Tab. The web exposes whether modifiers are pressed in the keydown event, but the game engine is trying to keep track of this information separately for some reason. (I'm not sure whether this is a Castle Game Engine, pas2js, or fpc library bug.)

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#5
post #2

Nice 90s vibe. Web target is cool. The invaders demo though... I have to say AD+W is not a good set of key bindings for that game.

WASD are the normal commands for movement in games.

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...).

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#6
post #2

Nice 90s vibe. Web target is cool. The invaders demo though... I have to say AD+W is not a good set of key bindings for that game.

WASD are the normal commands for movement in games. 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...).

WASD is more of a mouse+keyboard thing since in a standard desk layout you can't extend your arms nicely

ZXCV(ASDF)+arrows I would say is more standard for non-mouse games with keyboard bindings, cave story and touhou both go this route.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#7
Very cool!

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.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#8
post #2

Nice 90s vibe. Web target is cool. The invaders demo though... I have to say AD+W is not a good set of key bindings for that game.

WASD are the normal commands for movement in games. 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...).

> WASD are the normal commands for movement in games

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.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#9
post #8

Earlier quoted context omitted.

WASD are the normal commands for movement in games. 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...).

> WASD are the normal commands for movement in games 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.

It’s also the default in Factorio

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#10
It's kind of crazy to see this project posted here on hackernews just now. I've been trying to compile an open source Delphi 7 project and have been having issues sourcing a dependency called OpenGLLib. Through my searches I actually bumped into the Castle Game Engine a bunch! Unfortunately it looks like the usage of opengl doesn't exactly line up.
Post reply on HN