Talk:Complete Roguelike Tutorial, using python+libtcod, part 5

From RogueBasin
Revision as of 20:31, 22 March 2012 by Dontroel (talk | contribs) (Created page with "This is a really splendid tutorial! Two minor suggestions for improvement: * In make_map: Move the call to place_objects(new_room) to just before appending the new_room. Else th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a really splendid tutorial!

Two minor suggestions for improvement:

  • In make_map: Move the call to place_objects(new_room) to just before appending the new_room. Else the player may be placed on top of an object (since the player-placement does not check for blocking).
  • In place_objects: When computing the random spot for a monster, using values room.x1 and room.x2 without without modification allows monsters to be placed in the walls of the room. (Those placements are pruned afterwards when checking against is_blocked, but it results in fewer monsters than expected be

ing placed.)

--Dontroel 21:31, 22 March 2012 (CET)