tomassedovic / roguelike-tutorial

Port of the "Complete Roguelike Tutorial, using python+libtcod" to Rust + tcod
234 stars 30 forks source link

Consider architecture that works well with Rust? #17

Open tomassedovic opened 8 years ago

tomassedovic commented 8 years ago

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?

dobrite commented 7 years ago

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

tomassedovic commented 7 years ago

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.