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

exit in fullscreen in part-1-Graphics makes my desktop surface smaller

Open visualJames opened this issue 5 years ago • 1 comments

If I start the program (https://tomassedovic.github.io/roguelike-tutorial/part-1-graphics.html final edition of this part) with cargo run --release and press alt + enter for fullscreen and then esc to exit the programm, the program exits, but my desktop surface gets smaller. Problem occoured in Ubuntu 19.10

visualJames avatar Feb 15 '20 20:02 visualJames

Looks like something caused by the tcod-rs library or even more likely the underlying libtcod bindings.

Unfortunately, tcod-rs is using a pretty old version of libtcod and needs updating. There was an attempt at doing that here:

https://github.com/tomassedovic/tcod-rs/pull/290

But it stalled. Unfortunately, I wan't have the time or energy to investigate this myself, sorry! If you want to give it a go, I'd be delighted to merge a fix. Otherwise, you may want to look at the RLTK tutorial:

http://bfnightly.bracketproductions.com/rustbook/

It, as well as the underlying RLTK_RS bindings are actively maintained (unlike this tutorial and tcod-rs), they're written in pure Rust and they even support webassembly.

You might also want to check out doryen-rs by the original author of libtcod. It is another roguelike library that's actively maintained.

tomassedovic avatar Feb 21 '20 20:02 tomassedovic