Showing results for on rogueliketutorials.com
...Entity,
) -> GameMap:
"""Generate a new dungeon map."""
+ player = engine.player
+ dungeon = GameMap(engine, map_width, map_height, entities=[player])
) -> GameMap:
"""Generate a new dungeon map."""
+ player = engine.player
+ dungeon = GameMap(engine, map_width, map_height, entities=[player])
...We won’t do the procedural dungeon generation in this chapter (that’s next), but we’ll at least get our class that will...
Part 2 - The generic Entity, the render functions, and the map
Now that we can move our little ‘@’ symbol around, we need to give...
Now that we can move our little ‘@’ symbol around, we need to give...
...To do this, we’ll create a generic render_bar
function, which can accept different values and change the bar’s length based on the...
function, which can accept different values and change the bar’s length based on the...
...This obviously isn’t desired; acting entities should always appear above corpses, items, and other things in the dungeon. To solve this, let’s...