rubevy games
Three samples of rubevy: Bevy for the rules, SabiRuby for the behaviours. All three run here — the Ruby is compiled in the page and runs in the same VM the PC build uses.
- SabiRuby Battle Four robots fight; each one's behaviour is a Ruby task you can edit and re-apply while the match runs.
- Garden
A small world whose creatures read and write their own ECS components from Ruby
(
me[:Hunger]), breed, remember, and can be saved and loaded. - Factory
A small factory seen from above: belts, miners, furnaces and assemblers, and
three Ruby files you write —
data.rbdeclares the items, the recipes and the machines (and how big the world is),control.rbhears what the factory does and says what it is for, and each inserter runs its own script that decides when to move a thing from the tile behind it to the tile in front.