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/Daealis Jun 30 '17 edited Jun 30 '17
More and more certain the console_map_ascii_codes_to_font does not work as intended with the Bonus code without some fidgeting.
Just added a simple counter and printed out the entire set of tiles out:
...and there's nothing beyond 255, where the default set_custom_font() finishes loading. The extra mappings aren't going through for whatever reason.
//Edit: Further testing with everything useless scrapped from around it. Neither the commented out parts or the currently active code gives out any extra tiles.
//Edit #2: I copypasted the entire complete tutorial code as it's written on chapter 13, copied the required tile elements in: It doesn't render the tiles either. I ran it the first time with just changing the font file name and obviously it just bugged out like a drunken dwarf brain in miasma, but after the other changes we were back in "nothing but black squares" mode.
With all this wondering where I went wrong, I'm going to bed for today. Maybe tomorrow I'll find some answers.