Skip to content

Part 7 Notes #2

@Evolution0

Description

@Evolution0

At the end when the reader implements the mouse one thing I noticed which irked me a bit was that.. it seemed to do nothing, you have to actually point at something and then move your character/spend a turn for it to update. Changing:

            elif event.type == 'MOUSEMOTION':
                mouse_coordinates = event.cell

To:

            elif event.type == 'MOUSEMOTION':
                mouse_coordinates = event.cell
                fov_recompute = True

Fixes this. Can't say its the best way to do it but it does the job, possibly some panel specific redraw would be nice for such things but I suppose that is entirely up to the reader to implement on their own once they have finished the tutorial.

Edit: Feel free to ignore this if its something that is covered in a later section, I'm writing these as I go through the tutorial and its fresh in my mind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions