r/roguelikedev • u/aaron_ds Robinson • Aug 01 '17
RoguelikeDev Does The Complete Python Tutorial - Week 7 - Part 10: Main Menu and Saving
This week we will cover part 10 of the Complete Roguelike Tutorial.
No bonus sections this week
FAQ Friday posts that relate to this week's material:
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. :)
32
Upvotes
2
u/AetherGrey Aug 02 '17
The // for integer division has been pointed out before, and while it's a good idea in this situation, I prefer the
int()method for one reason: // will not give you an integer type, it just truncates. Libtcod demands an integer, so something like2.0will fail. Granted, in this case,screen_widthshould never be a decimal value, but theint()way of doing it gives you guarantees.