The Crystal Programming Language Forum

Text RPG adventure game

Yesterday I was inspired to write a text RPG adventure game. I stayed up way too late last night messing around with the basic mechanics and this is what I came up with.

I took a mostly functional approach to the underlying engine, so there’s absolutely no state mutation. Consequently, the code is quite easy to reason about.

The whole game is built using scenes and commands. Even the menu screen is built with scenes and commands.

Some long term ideas I have are to use NCurses for a better visual presentation, support character equipment and abilities, support natural language processing for a nicer input experience, and maybe add some AI for in-game characters.

Anyone want to help build a fun little game?