TStand90/roguelike_tutorial_revised

Part 2 - Mismatch with previous Part

Closed this issue · 1 comments

In Part 1 we removed using default 0 console and instead of it declared con.

But there are code snippets in Part 2 which says that we do still use the default one also:

-       libtcod.console_put_char(con, player_x, player_y, ' ', libtcod.BKGND_NONE)
-       libtcod.console_put_char(0, player_x, player_y, ' ', libtcod.BKGND_NONE)
+       libtcod.console_put_char(con, player.x, player.y, ' ', libtcod.BKGND_NONE)
+       libtcod.console_put_char(0, player.x, player.y, ' ', libtcod.BKGND_NONE)

So what is right version?

closing due to inactivity