roguelike-tutorial icon indicating copy to clipboard operation
roguelike-tutorial copied to clipboard

Consider architecture that works well with Rust?

Open tomassedovic opened this issue 7 years ago • 2 comments

This is very vague but basically: the tutorial tries to follow the Python one reasonably closely and only differs where it's necessary. The original tutorial works well with Python but Rust is a very different language.

Would be nice to try to think of how would the same game be implemented in Rust proper. Maybe there are better ways of structuring the data and code. How would a Rustacean write this?

tomassedovic avatar Sep 07 '16 21:09 tomassedovic

Using an ECS (specs, etc.) could be an avenue worth investigating.

dobrite avatar Mar 26 '17 01:03 dobrite

Hey @dobrite, thanks for the suggestion and sorry for the very late reply.

I'd like the tutorial to be mostly standalone (other than what's absolutely necessary, i.e. tcod, rand and serde).

It would be excellent to have a bonus chapter showing how to use an ECS though. And since I don't have any experience with the Rust's ECSes yet, it's quite possible that the gain would be so huge we'll just want move it to the main tutorial -- I just can't tell now.

tomassedovic avatar Jun 12 '17 12:06 tomassedovic