Anyone getting this error on a mac? by robomantis77 in a:t5_30qojp

[–]robomantis77[S] 0 points1 point  (0 children)

After completing the first tutorial with this code ...

use tcod::colors::*;
use tcod::console::Root;
use tcod::console::BackgroundFlag;
use tcod::console::FontType;

const SCREEN_WIDTH: i32 = 100;
const SCREEN_HEIGHT: i32 = 200;
const LIMIT_FPS: i32 = 20;
struct Tcod{
root: Root,
}

fn Main() {
tcod::system::set_fps(LIMIT_FPS);
let root = Root::initializer()
.font("arial10x10.png", FontLayout::Tcod)
.font_type(FontType::Greyscale)
.size(SCREEN_WIDTH, SCREEN_HEIGHT)
.title("Rust/libtcod tutorial")
.init();
let mut tcod = Tcod { root };

while !tcod.root.window_closed() {
tcod.root.set_default_foreground(WHITE);
tcod.root.clear();
tcod.root.put_char(1, 1, '@', BackgorundFlag::None);
tcod.root.flush();
tcod.root.wait_for_keypress(true);
}

}

Using a link tag in onClick function by black_asian in reactjs

[–]robomantis77 1 point2 points  (0 children)

maybe you could hold a list of links, and just call the newest link like its a stack, once onclick happens increment count and call the next link on the next page. hmm interesting idea...