Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
visualJames opened this issue Feb 15, 2020 · 1 comment

Comments

@visualJames
Copy link

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

@tomassedovic
Copy link
Owner

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:

tomassedovic/tcod-rs#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants