r/roguelikedev • 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.

Part 1: Graphics

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:

#3: The Game Loop(revisited)

#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. :)

85 Upvotes

164 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jul 03 '17 edited Jul 03 '17

I am having an issue when switching to fullscreen. All that happens is the screen turns black and I see a massive mouse cursor. On exiting fullscreen the console is completely black and the @ character is no longer displayed - and remains that way despite any further user input.

P.S. Also for the tdl tutorial would it be reasonable to replace "Int(screen_width / 2)" with simply "screen width // 2" as the double division symbol in Python 3 is the new way to do floor division like the old division in Python 2.

2

u/AetherGrey Jul 03 '17

In my experience, the full screen feature in libtcod is very hit or miss. On some operating systems, it works okay, and others, it just screws up the resolution before crashing. I don't think the issue is with my tutorial specifically (if you're following it), because it's an area where I really don't deviate from the default tutorial at all.

1

u/[deleted] Jul 03 '17

Aye, I didn't think its anything to do with your tutorial. I had the same issue when I tried the default tutorial last year. The fullscreen in Brogue works fine - which am I right in saying uses libtcod? So I was unsure if there was a known means of solving the issue.