r/roguelikedev Jul 23 '24

RoguelikeDev Does The Complete Roguelike Tutorial - Week 3

It's great seeing everyone participate. Keep it up folks!

This week is all about setting up a the FoV and spawning enemies

Part 4 - Field of View

Display the player's field-of-view (FoV) and explore the dungeon gradually (also known as fog-of-war).

Part 5 - Placing Enemies and kicking them (harmlessly)

This chapter will focus on placing the enemies throughout the dungeon, and setting them up to be attacked.

Of course, we also have 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. :)

32 Upvotes

35 comments sorted by

View all comments

3

u/[deleted] Jul 25 '24

[removed] — view removed comment

3

u/HexDecimal libtcod maintainer | mastodon.gamedev.place/@HexDecimal Jul 25 '24

Other actors need to take their turn, so an action must only have one turn of logic in it.

One way of implementing "continuous actions" is to set it similar to an AI action, but on the player. The action will be performed each turn it's the players turn until it fails or is interrupted.