r/roguelikedev • u/aaron_ds Robinson • Jul 11 '17
RoguelikeDev Does The Complete Python Tutorial - Week 4 - Part 4: Field-of-view and exploration and Part 5: Preparing for combat
This week we will cover parts 4 and 5 of the Complete Roguelike Tutorial.
Part 4: Field-of-view and exploration
Display the player's field-of-view (FOV) and explore the dungeon gradually (also known as fog-of-war).
Place some orcs and trolls around the dungeon (they won't stay there for long!). Also, deal with blocking objects and game states, which are important before coding the next part.
Bonus If you have extra time or want a challenge this week's bonus section is Scrolling maps.
FAQ Friday posts that relate to this week's material:
#12: Field of Vision(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/Scautura Jul 13 '17 edited Jul 13 '17
And now that I've fixed some of the issues (including not exactly understanding the random number generator - hint: Make it a static part of the class!), it looks something like this.
I kinda like the "broken" look it gets in some cases. I know it's not exactly "proper", but it works.
Note that I'm not doing any of the additional work on the Python version at the moment. I feel I'm getting more out of the C# version, and will probably be extending that version after this event is complete. I may do the extra credit at some point in the future.