Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement path node list to movement for slime #24

Open
perryBunn opened this issue Sep 14, 2017 · 1 comment
Open

implement path node list to movement for slime #24

perryBunn opened this issue Sep 14, 2017 · 1 comment
Assignees

Comments

@perryBunn
Copy link
Contributor

No description provided.

@perryBunn perryBunn self-assigned this Sep 14, 2017
@perryBunn
Copy link
Contributor Author

basic psudocode of the path following

        if path is not null then
          if self x and y are within range of last node in path then
            -- use the original path code below
          end
          target = node(current)
          if distance to taget node is less than some range then
            change target node to current
            change target node to next node in array
            if target node is greater than path length then
              subtract one
            end
          end
          -- path to node similar to original code
        end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant