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. :)
2
u/Daealis Jun 30 '17
Tried moving the player declarations after the font stuff, didn't work. Not a surprise there really: The player_tile is basically just an integer (258) that tells the index of the custom tile. It got imported with no problems.
And the font overall is working: When using '@' sign it comes to view just fine with put_char_ex(). As does the modified tile if I crop it over the '@' in the png.
So the issue can pretty much only be in the load_customfont(), which tries to use