sakura-no-hana / hanalon-bot

An RPG Discord bot
MIT License
0 stars 0 forks source link

Camera panning #24

Open eniraa opened 3 years ago

eniraa commented 3 years ago

See #23 for context.

Essentially, have players control a camera in addition to their characters. The camera can move at any point, meaning that we should actually be caching the results of the raytrace. It should also be modified to have a max view distance (i.e. using Ray.intensity). The rendering function also happens to be position-agnostic, meaning that it really doesn't care where you're rendering in the dungeon. Literally all that's needed for this to work is a variable in the dungeon to keep track of camera location, and commands to modify said variable.

eniraa commented 3 years ago

f735ab5cce10f9ee4742b6c85f527414d91bc398 partially implements this through Dungeon.render_origin.

eniraa commented 3 years ago

4365f4febeb06668b75ecab72fa92312b49ec3da guarantees that a 9 × 9 view is always possible.