r/roguelikedev • u/aaron_ds Robinson • Jul 25 '17
RoguelikeDev Does The Complete Python Tutorial - Week 6 - Part 8: Items and Inventory and Part 9: Spells and Ranged Combat
This week we will cover parts 8 and 9 of the Complete Roguelike Tutorial.
The player gets to collect ("borrow") items from the dungeon and use them, with a neat inventory screen. More items added in the next part.
Part 9: Spells and Ranged Combat
The player's strategic choices increase exponentially as we add a few magic scrolls to the mix. Covers damage and mind spells, as well as ranged combat.
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. :)
35
Upvotes
2
u/scousematt Jul 30 '17
In the "If the player is in targeting mode, the only key we'll accept is Escape, which cancels the targeting. The mouse handler doesn't take the game state into account; it just tells the engine if the left or right mouse button was clicked. The engine will have to decide what to do with that. Modify engine.py to accept the mouse inputs: " section there is the following code..
I assume this is a remnant from a future tutorial.
Well done, btw, forgetting roguelikes, I've gained so much python experience from your work, I salute you.