tcod-rs
tcod-rs copied to clipboard
Rust bindings for libtcod 1.6.3 (the Doryen library/roguelike toolkit)
Originally reported by [u/PollenX](https://www.reddit.com/user/PollenX/) on Reddit: https://www.reddit.com/r/rust_gamedev/comments/e9v0x0/tcod_fullscreen_toggle_not_working/ Calling `set_fullscreen(true)` after the root console has been initialised does not have any effect. This seems to have something to do with the...
I tried to use the `check_for_event` function, but got this error: ``` 32bits font... checking for alpha layer... not present key color : 0 0 0 thread 'main' panicked at...
Okay, so... this PR is quite large, and I've made some pretty deep changes to this library, particularly to the build system, so let me just enumerate those real quick:...
While the documented dependencies work on Ubuntu 20.04, the Fedora (32) dependencies look a bit different: ```shell # dnf install SDL2-devel gcc g++ make zlib-devel ``` We should add this...
I'm trying to get `tcod-rs` to compile for wasm (actually the wasm32-unknown-emscripten target) but I'm getting some errors about the underlying C code and I'm having a hard time finding...
Please upgrade tcod_sys to use libtcod 1.9+ (last stable version for now 1.15) with new renderer OPENGL2 and many improvements. 1.6.3 is completely outdated today.
Running on OSX 10.14 (Mojave) Creation of image from console segfaults on [this](https://github.com/tomassedovic/tcod-rs/blob/725f0672292d5444df6e90d5bed6da5b6c06fee5/tcod_sys/libtcod/src/sys_sdl_c.c#L550) line when dereferencing the pixel pointer. Minimalistic example that reproduces the error (happens on both Offscreen and...
When pressing (on a US layout) `Shift + .` I expect the `printable` field of `tcod::input::Key` to be `>`. Instead, it is `.`. (The `code: Text` event seems to have...
I've tried to use the libtcod provided by my distro, ``` Cargo.toml [target.x86_64-unknown-linux-gnu.tcod] rustc-flags = "-L $LIBTCOD -l tcod" ``` but unfortunately cargo gives me the following warning ``` warning:...
Following discussion on #299, we should update the `build.rs` to use `pkg-config` to find `libtcod` and skip compiling it if it's already present on the system. [Here](https://github.com/Rust-SDL2/rust-sdl2/blob/master/sdl2-sys/build.rs#L79) is how `rust-sdl2`...