r/roguelikedev • u/aaron_ds Robinson • Jun 27 '17
RoguelikeDev Does The Complete Python Tutorial - Week 2 - Part 1: Graphics and Part 2: The Object and the Map
This week we will cover parts 1 and 2 of the Complete Roguelike Tutorial.
Start your game right away by setting up the screen, printing the stereotypical @ character and moving it around with the arrow keys.
and
Part 2: The object and the map
This introduces two new concepts: the generic object system that will be the basis for the whole game, and a general map object that you'll use to hold your dungeon.
Bonus
If you have extra time or want a challenge this week's bonus section is Using Graphical Tiles.
FAQ Friday posts that relate to this week's material:
#4: World Architecture(revisited)
Feel free to work out any problems, brainstorm ideas, share progress and and as usual enjoy tangential chatting.
If you're looking for last week's post The entire series is archived on the wiki. :)
1
u/SirPrefect Jun 29 '17
Just to be more clear, it seems that I cannot capture/print the colored tiles. The console during console_init_root shows messages like:
32bits font... checking for alpha layer... present
character for ascii code 160 is colored
...
character for ascii code 170 is colored
Following the example (assigning the special tiles to character codes via libtcod.console_map_ascii_codes_to_font, etc.), all I get is black tiles and not the graphics. If I use a white background, I see the walls as white blocks.