Talk:Complete Roguelike Tutorial, using python3+libtcod, part 2
Jump to navigation
Jump to search
In 'using python3+libtcod, part 1', last link to code, initialize_game() in put into a function. But in the first link to code in 'using python3+libtcod, part 2', the contents of initialize_game() is not in a function.
Furthermore, the first tutorial asks to add con = tcod.console_new(SCREEN_WIDTH,SCREEN_HEIGHT) after tcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, window_title, FULLSCREEN) If you do this, using part 1's code, con will not be an accessible scope for tcod.console_blit(con, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0)